[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Difference double/single precision
From: |
Schirmacher, Rolf |
Subject: |
Difference double/single precision |
Date: |
Thu, 22 Sep 2011 00:53:19 +0200 |
Hello,
with the 3.2.4 windows (mingw) binary, I get the
following results:
octave.exe> format long
octave.exe> 1.0/3
ans =
0.333333333333333
octave.exe> single(1.0/3)
ans =
0.333333343267441
octave.exe> 1.0/3 - single(1.0/3)
ans = 0
I am wondering about the difference being 0.
In addition, how could I calculate the difference of 1.0/3 as single and
double?
Thanks for any hint,
Rolf
- Difference double/single precision,
Schirmacher, Rolf <=