Re: computing fractions



CBFalconer wrote:
Blod-Svente wrote:
A really basic math question:

I'm trying to compute values like 2^-30000 (in base 10
representation). I'd like to get the decimals directly, without
dividing a bignum 40000 times to get 2^-40000 etc.


Try dubldabl.txt at:

<http://cbfalconer.home.att.net/download/>

Cool, looking at it now.
Thanks!

Bosse
.



Relevant Pages

  • Re: computing fractions
    ... I'm trying to compute values like 2^-30000 (in base 10 representation). ... I'd like to get the decimals directly, without dividing ... a bignum 40000 times to get 2^-40000 etc. ... all ears if there's some special method for power of 2 fractions. ...
    (comp.programming)
  • computing fractions
    ... I'm trying to compute values like 2^-30000 (in base 10 representation). ... I'd like to get the decimals directly, without dividing ... a bignum 40000 times to get 2^-40000 etc. ... A general method would be cool, ...
    (comp.programming)
  • Re: BigNum -- Floating Point
    ... The bignum represented internally as ... what an exponent gives me. ... It should indeed handle money with *exact* precision (modulo what ... or which apply to the decimal representation). ...
    (comp.programming)
  • Re: Float comparison
    ... CBFalconer writes: ... any value sufficiently well to perform calculations. ... And those ranges are useless in error analysis because after ... The representation errors are ...
    (comp.lang.c)
  • Re: Assigning a bool a numeric value -- please help!
    ... CBFalconer writes: ... snip ... ... Adding multiplying ... and dividing these results is not what they're for. ...
    (comp.lang.c)