Method to round numbers

  • Thread starter Thread starter Samuel
  • Start date Start date
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
 
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.
 
Back
Top