file io - A floating point array in C -


I am developing a code where I have to load the floating point value in a text file in each row at a time .. I loaded each of these data into floats using FSNF ... although I found out that the floating points were stored in a different way, for example 407.18 to 407.179 993, 414.35 as 414.350006 Was stored in the form ... now I stuck Or because it would absolutely essential that the numbers may be stored in the form in which they were in the file, but it is essentially the same, though it looks different .... How can I save the original? do not use floating-point values ​​ all partial base-10 values ​​are not exactly displayed in binary May be.

For details, you should consult the article [pdf link].

You should store the number in the string form or as a scaled integer.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -