Re: bignum with floating point



From: banan...@xxxxxxxxxxxx
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?

Floating point arithmetic, and rounding, is for people who are too
lazy to keep careful track of error tolerances throughout their
calculations and too stupid to use interval arithmetic to do all
that error-tracking fully automatically.

I personally recommend you don't even touch that crap. Instead,
write a decent interval-arithmetic package that supports
"scientific" notation, i.e. normalized value times arbitrary power
of 2 or 10 or 16. It'll be a bit more work to do it right instead
of sloppy, but it'll pay back the first time you write a
significant numerical application that uses your library.
.



Relevant Pages

  • Re: "TECH is nil" error when copying library
    ... probably not necessary) but you did not include the technology library ... loaded in libInit.il of PRIMLIB library. ... It might be a nightmare to migrate the schematics, ... The integrity and correctness of the cells in this library ...
    (comp.cad.cadence)
  • MKTY ( =?ISO-8859-1?Q?Mobion=99?= )
    ... Chief Executive Officer of MTI MicroFuel Cells Inc. ... micro fuel cell technology and a subsidiary of Mechanical Technology ... the Company's market entry strategy and micro fuel ...
    (misc.invest.stocks)
  • "TECH is nil" error when copying library
    ... *WARNING* no technology specified ... The integrity and correctness of the cells in this library ... cadence 'find' the pmos and nmos instances in the schematics of the ... I am pretty sure the IBM design kit is ...
    (comp.cad.cadence)
  • Re: Cryopreservation is turning into a Good GAMBLE
    ... they remove the water from your cells and replace it with a glycerol- ... antifreeze. ... I say that to say this, there working on the Technology as ...
    (rec.gambling.poker)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)