Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Why does perl math suck? (order)

by ikegami (Patriarch)
on Jan 13, 2011 at 18:09 UTC ( [id://882196]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Why does perl math suck? (order)
in thread Why does perl math suck?

where parens imply order of evaluation, which isn't always the case

This has been bugging me. Which language would that be? Given

$small+($huge1-$huge2)

I know that Perl and C doesn't define whether $small or $huge1-$huge2 is evaluated first, but nowhere I've seen has mentioned that they can apply mathematical equivalence rules that don't work with floats to refactor equations. The LHS of the "+" in the code will be used as the LHS of the "+" operator, and similarly for RHS.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-19 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found