|
-
Apr 20th, 2004, 11:22 AM
#1
Thread Starter
Frenzied Member
Float Size
Maybe I am tired or something. But I cant figure out how to do this easily. If I have a float how can I tell its whole number size or places.
Example:
9 = 1 place
93 = 2 places
934 = 3 places
9349 = 4 places
93490 = 5 places
and so on.
I figure I could convert it to a string then get the length, but that seems like to much work. Anyone got a better idea?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

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
|
Click Here to Expand Forum to Full Width
|