-
August 30th, 2011, 05:00 PM
#1
Junior Member
rounding float values in C#
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()
Similar Threads
-
By warriorfan808 in forum General Programming Questions
Replies: 4
Last Post: November 28th, 2005, 09:50 PM
-
By ch4r in forum Other Tutorials Forum
Replies: 0
Last Post: May 30th, 2005, 09:29 PM
-
By Kamikaze Badger in forum Code Review
Replies: 4
Last Post: March 30th, 2005, 01:55 PM
-
By Neg in forum AntiOnline's General Chit Chat
Replies: 1
Last Post: August 2nd, 2004, 07:57 PM
-
By jinxy in forum Operating Systems
Replies: 3
Last Post: May 5th, 2004, 06:57 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|