Re: Null<double> and arithmetics
Posted by
Dirk Eddelbuettel on
May 07, 2002; 7:52am
URL: http://quantlib.414.s1.nabble.com/Null-double-and-arithmetics-tp2040p2042.html
> At 04:50 PM 5/5/02 -0500, Vadim Ogranovich wrote:
> >Just want to make a suggestion. Currently
> >double x = Null<double>() * 0.01;
> >produces a valid double, which is confusing (I ran into it when I read
> >interest rates in %% and then converted to non-percent numbers).
> >
> >I heard that there is a IEEE standard + libraries for things like NaN, Inf,
> >etc. It would be nice if Null<numeric> conform to that standard.
>
> It would indeed.
> Does anybody have any insight into this? Any URL?
There is one, isn't it called IEEE 854 or something?
I recall something authored a long time ago by a Berkeley ElecEng. prof.
A good google search might unearth that; else I check my old Octave
and R folders at home [ both packages deal with NaN ].
Dirk
--
According to the latest figures, 43% of all signatures are totally worthless.