Originally posted by Alex Chambers
View Post
If you don't specify "1.0005#", the compiler makes this a single precision float (SINGLE).
After that, it stores your SINGLE 1.0005 into a variable kk, which is a DOUBLE.
With the conversion from ascii string "1.0005" to a SINGLE, a rounding error occurs, due to the limited precision of a SINGLE .
Kind regards
Leave a comment: