Jump to content


Photo

rounding a float number

- - - - -

  • Please log in to reply
No replies to this topic

#1
xarzu

xarzu

    Newbie

  • Members
  • Pip
  • 5 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()



  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users