Method to round numbers

S

Samuel

Hi

I am looking for a method that rounds numbers to a specified number of
decimal places for example if I pass 2.455 it will return 2.46

Thank you,
Samuel
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Samuel said:
I am looking for a method that rounds numbers to a specified number of
decimal places for example if I pass 2.455 it will return 2.46

Use the Math.Round method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top