Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
And, IIUC, the test script should accept '1000e-36' as correct when NV precision is 64 bits
Alternatively (and since you're already using POSIX) you should get the result you expected, if you replace the log() calls with POSIX::log10(). That way both numerator and divisor should be exact (for these particular inputs), as should also be the result of the division ... irrespective of the precision of the NV: Cheers, Rob In reply to Re^4: Portability of floor(log(N))
by syphilis
|
|