From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: Reading Float Data from a binary file into ada
Date: Thu, 01 Feb 2007 18:27:12 +0100
Date: 2007-02-01T18:27:12+01:00 [thread overview]
Message-ID: <qt7tpe.esk.ln@hunter.axlog.fr> (raw)
In-Reply-To: <mailman.65.1170347352.18371.comp.lang.ada@ada-france.org>
Ali Bendriss a �crit :
> I was not aware that VB has some fixed point built-in.
> (... In fact I never use the fixed point at all).
> I was thinking that it's mostly a facility offered by Ada.
> I undersand that it could be usefull for the monetary conversion for example
> but is it an important feature for a language to offer a built-in fixed point
> representation ? does a library can offer the same level of facility ?
>
IANAL, but I heard that it is forbidden by law to make monetary
computations in floating point. Even when you are computing the budget
of the DoD :-), you are not allowed to loose cents just because the
amount is too big.
Time is another interesting example: except when you are modelling the
big bang, the origin of time is arbitrary, and you'd better not loose
precision as time flows.
Of course, if you are using a poor language without fixed point, you can
get the facility with a library. However, it is much more convenient to
have it as a first class type. There are really two ways of modelling
mathematical reals; the fact that most languages provide only one does
not imply that the other one is not useful.
--
---------------------------------------------------------
J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr
next prev parent reply other threads:[~2007-02-01 17:27 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-30 15:51 Reading Float Data from a binary file into ada frikk
2007-01-30 16:37 ` Dmitry A. Kazakov
2007-01-30 16:55 ` Jean-Pierre Rosen
2007-01-30 17:35 ` Ali Bendriss
2007-02-01 16:28 ` Ali Bendriss
2007-02-01 17:27 ` Jean-Pierre Rosen [this message]
2007-01-30 17:56 ` Jeffrey R. Carter
2007-01-30 18:04 ` frikk
2007-01-30 19:56 ` frikk
2007-01-31 18:30 ` Jeffrey R. Carter
2007-01-30 20:51 ` Robert A Duff
2007-01-31 18:25 ` Jeffrey R. Carter
2007-01-31 18:57 ` frikk
2007-01-30 19:31 ` Niklas Holsti
2007-01-30 21:14 ` Cesar Rabak
2007-01-30 21:36 ` frikk
2007-02-01 21:11 ` Simon Wright
2007-02-01 21:44 ` Niklas Holsti
2007-02-03 12:13 ` Simon Wright
2007-02-03 14:59 ` Gautier
2007-02-03 17:01 ` Simon Wright
2007-01-30 20:02 ` Martin Dowie
2007-01-30 20:09 ` frikk
2007-01-30 20:23 ` Martin Dowie
2007-01-31 3:54 ` Steve
2007-01-31 8:42 ` Maciej Sobczak
2007-01-31 14:12 ` frikk
2007-01-31 18:38 ` frikk
2007-02-01 0:05 ` Jeffrey R. Carter
2007-02-01 2:59 ` Steve
2007-02-01 16:05 ` Bob Spooner
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox