P
Peteroid
Try putting this in your code:
double x(.008) ; // 8/1000
double y(.064) ; // 64/1000
double z(x+y) ; // 72/1000 ?
You'd think that z = .072. Nope, z = 0.072000000000000008. That seems REALLY
inaccurate to me. Is there a floating-point package (3rd party) that boasts
being more accurate AND is known to be reliable, simple to use, and
hopefully somewhat cheap? Thanx in advance for any help...! : )
double x(.008) ; // 8/1000
double y(.064) ; // 64/1000
double z(x+y) ; // 72/1000 ?
You'd think that z = .072. Nope, z = 0.072000000000000008. That seems REALLY
inaccurate to me. Is there a floating-point package (3rd party) that boasts
being more accurate AND is known to be reliable, simple to use, and
hopefully somewhat cheap? Thanx in advance for any help...! : )