Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^7: IF condition with a range (updated)

by syphilis (Archbishop)
on Jul 17, 2018 at 13:25 UTC ( [id://1218664]=note: print w/replies, xml ) Need Help??


in reply to Re^6: IF condition with a range (updated)
in thread IF condition with a range

Well, the difference between 1e-5000 and 1e-5100 is pretty small. For most intents and purposes, there is no difference

Heh ... I thought this was about "mathematical equality", but suddenly it's now also about "intents and purposes".
For double precision NVs I could have chosen much larger values of (say) 1e-324 and 1e-325 ... but you're probably not going to be swayed by that, anyway ;-)

By my calculations, the latter is 659669 orders of magnitude bigger than the former

Yep, I get the same:
C:\>perl -MMath::MPFR -le "$x=Math::MPFR->new(6 ** 6); print 6 ** $x; 2.6591197721532269e36305 C:\>perl -MMath::MPFR -le "$x=Math::MPFR->new(7 ** 7); print 7 ** $x; 3.7598235267837884e695974

Cheers,
Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1218664]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found