[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How many digits does octave use?!
From: |
Ted Harding |
Subject: |
Re: How many digits does octave use?! |
Date: |
Tue, 12 Sep 1995 18:30:10 +0200 (BST) |
> octave:48> a=rand(1,1)/200;
> octave:49> sprintf("%.100g\n",a)
> ans = 0.0004910822212696075612925472597680709441192448139190673828125
>
> Thats 64 DIGITS! Where are they coming from?
>
> That's even nicer (using the precompiled alpha binaries):
>
> octave:1> sprintf("%.100g\n",1/3)
> ans = 0.333333333333333314829616256247390992939472198486328125
> --
> Francesco Potorti` Voice: +39-50-593203
Well, looking into this I typed the wrong thing, and ...
octave:28> sprintf("%.300g\n",1000000000/(8*8*8*8*8*8*8*8*8*8*8**88))
ans =
3.1418198177905449939812940511912164115041379279996477216713914349997473630218981481344626457838924494573974858016844022484274679106718200977968094874297366094419874972543116342649227590300142765045166015625e-80
I think I hold the record, so far.
Ted. (address@hidden)