Jump to content

rounding a float number


Guest xarzu

Recommended Posts

I have a float data type in C#.

Let's say its value is

5.827671

and I want to concat/round it to the nearest 100th place

5.83

How would I do that?

The value is ported to a string by

floatvalue.ToString()

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.