![]() |
![]() |
#1 (permalink) |
Lost
Location: Florida
|
[C] How do I reduce the precision of a double?
Basically, I want to accept any number form, 1.2 14123.224324, 12414, .000512, And produce an answer after calculation, with only 2 places after the decimal, and everything before it. So if I was to scanf and get 123123.2255 And then do a printf, print back out 123123.22
Is this possible? |
![]() |
Tags |
double, precision, reduce |
|
|