[PLUG] Unexpected math result

Richard C. Steffens rsteff at comcast.net
Wed Dec 21 21:21:04 UTC 2011


On 12/21/2011 12:29 PM, Tim wrote:

> That's floating point for you, and most traditional languages use that
> by default.  If you want exact calculations, you have to use a library
> specifically designed for them, or use a language which does exact
> calculations by default.

Back in the late '70s and early '80s I wrote programs for small 
businesses with a version of Turbo Pascal that used binary coded decimal 
for math. What languages use that, or something giving non-floating 
point results these days?

-- 
Regards,

Dick Steffens





More information about the PLUG mailing list