[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How many digits does octave use?!

From: Francesco Potorti`
Subject: How many digits does octave use?!
Date: Tue, 12 Sep 1995 18:09 +0100 (MET)

   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
CNUCE - Istituto del CNR            Operator: +39-50-593111
Via Santa Maria 36                  Fax:      +39-50-904052
56126 Pisa - Italy                  Email:    address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]