How many digits does octave use?!

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How many digits does octave use?!

Eyal Doron-2
Hi,

  How do you explain this:

octave:48> a=rand(1,1)/200;
octave:49> sprintf("%.100g\n",a)
ans = 0.0004910822212696075612925472597680709441192448139190673828125

Thats 64 DIGITS! Where are they coming from?

Eyal Doron