bignum with floating point



Hi,

I want to program a bignum library in C just for learning,
it doesn't seem too hard (I don't care about speed) when
considering just integer numbers, but when I add support
for division and need floating point numbers I doesn't
look so easy anymore. I wonder if it's hard to do this.
Is there some easy trick to do this? Can I just round
off some fixed digits to the right of the decimal-point?
Or do I need to get a deep understanding of
floating point representations and IEEE standards?

Thanks!

.



Relevant Pages

  • Re: bignum with floating point
    ... I want to program a bignum library in C just for learning, ... it doesn't seem too hard (I don't care about speed) when ... look so easy anymore. ... floating point representations and IEEE standards? ...
    (comp.programming)
  • Re: prePEP: Decimal data type
    ... I'd eliminate the division operators completely, ... That's ok for floating point, ... >> Since we've got infinite precision integer arithmetic, ... I prefer having the compiler take care of it. ...
    (comp.lang.python)
  • Re: bignum with floating point
    ... need floating point numbers I doesn't look so easy anymore. ... write a decent interval-arithmetic package that supports ... i.e. normalized value times arbitrary power ...
    (comp.programming)
  • Re: Archive photos to CD
    ... Too many old wives' tales ... floating around. ... What I do for stuff I care about is make two CDs, ...
    (rec.photo.digital)
  • Re: Strange problem with number_format() function, please need your help.
    ... The operative thing is that floating point numbers are ... Would you care to share this code with us? ... Simply, i treat the decimals as integers, cut the number of digits ... after the zero, if the last digit usefull is>= 5 increment it, else ...
    (comp.lang.php)