Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Some simple math and absolute values

by parv (Vicar)
on May 23, 2020 at 06:48 UTC ( #11117143=note: print w/replies, xml ) Need Help??


in reply to Some simple math and absolute values

Could reduce to 2 statements, does not seem any better ...

$nwt = abs( $wt ); $total = ( $nwt < $min ? $min : $nwt ) * $price * ( $wt < 0 ? -1 : 1 ) ;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-10-27 06:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (256 votes). Check out past polls.

    Notices?