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
:-|

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

Thank you so much Alvein

I tried this function and it works

I appreciate that

:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.