Web lists-archives.com

Re: [Mingw-users] msvcrt printf bug

On 1/17/2017 10:04 PM, KHMan wrote:
> Floating point is a lot about managing imperfection...

Has been since the dawning of math and doing math with computers is best
left to integers.  If possible multiply input by the expected precision,
100, 1000, etc and store as an integer.  Divide by the precision
multiplier before presenting the result to the use.  It's what I had to
do 36 years ago when I was working with 16 bit computers and if I need
to present dollars and cents still do today.


Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe