Could someone try the following code in Matlab? The documentation says
they keep 15 digits after the decimal point for the long format, but
frankly that would be misleading to the programmer. IEEE-854 has 15-17
significant figures when represented in base 10, and there is no reason to
attempt to show more precision if it does not actually exists, as would be
the case if some of the significant digits occur before the decimal point.
Code:
format long
x = pi;
y = [x; x*10; x*100; x*1000]
single (y)
Thanks,
Rik
-----------------------------------------
Join us March 12-15 at CERN near Geneva
Switzerland for OctConf 2018. More info:
https://wiki.octave.org/OctConf_2018
-----------------------------------------