Jump to content
Sign in to follow this  

rounding a float number

Recommended Posts

I have a float data type in C#.

Let's say its value is


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


How would I do that?

The value is ported to a string by


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this