0

Hi every one,

I need your help in this issue.

Before I start maybe I can’t explain what I need very well because I don’t speak English.

I need function in visual basic to switch the number of point in decimal.
Basically how many points can I control it? “Routing

For example: 1.346 --> 1.35 “2 points “

1.3468 --> 1.347 “3 points “

And so on

Thank you
:-|

2
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by vip.Knight
0

Hi every one,

I need your help in this issue.

Before I start maybe I can’t explain what I need very well because I don’t speak English.

I need function in visual basic to switch the number of point in decimal.
Basically how many points can I control it? “Routing

For example: 1.346 --> 1.35 “2 points “

1.3468 --> 1.347 “3 points “

And so on

Thank you
:-|

Use the builtin function Round():

Round(1.346,2)=1.35

Round(1.3468,3)=1.347

:p

0

Thank you so much Alvein


I tried this function and it works


I appreciate that

:)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.