[SLUG] {SPAM?} High Precision Floating Point Numbers

From: Paul M Foster (paulf@quillandmouse.com)
Date: Fri Mar 19 2004 - 02:12:18 EST


Programmers:

Anyone have tips on how to ensure high precision in mathematical
operations dealing with floats and doubles in C? These numbers will
typically be dollars, and I don't want a lot of imprecise results when
doing math on them. (Because floats and doubles represent decimal
numbers as binary, they're very prone to loss of precision.)

Paul

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:25:36 EDT