|
-
Jun 17th, 2007, 10:14 PM
#1
Thread Starter
PowerPoster
[RESOLVED] "Single" for single precision floating point number
As the title, ‘Single’ holds a single decimal number? Or the result holds a single decimal value? Or anything else?
Ok, just look at the following code fragment.
Code:
Single p = 225.2F;
Single q = 12.54F;
Single r = p / q;
Console.WriteLine(r);
Output is 17.95853, and I’ve no idea what’s happened there. Where the single precision is?
Check on MSDN and fail. Please help me. How can I use it?
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
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
|