Voting

: zero minus zero?
(Example: nine)

The Note You're Voting On

dhosek at excite dot com
25 years ago
Be careful:
printf ("(9.95 * 100) = %d \n", (9.95 * 100));

'994'

First %d converts a float to an int by truncation.

Second floats are notorious for tiny little rounding errors.

<< Back to user notes page

To Top