"R" == Rosario19 <[email protected]d> writes:
In Nars is right that the floor of log10 of 9999999999999.9v with
fpc=128 result 13?
30??10 ? 9999999999999.9v
13.000000000000000000000000000000
I don't know nars, you are probably being hit by floating point
precision issues.
with arbitrary precision, the log10 of 9999999999999.9 is:
+12.999999999999995657055180967460008764615648097801793308999084...
Using ieee 64bit floats, you are likely to get 12.999999999999995,
but with 32bit floats you'll get 13.0.
Even with 64bit floats, rounding issues along the way could lead to a
result of 13 rather than 12.99999999...
Hense the difference in floor()'s output.
-JimC
--
James Cloos <
[email protected]>
OpenPGP:
https://jhcloos.com/0x997A9F17ED7DAEA6.asc
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)