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

perlfunc:abs

by gods
on Aug 24, 1999 at 22:43 UTC ( #311=perlfunc: print w/replies, xml ) Need Help??

abs

See the current Perl documentation for abs.

Here is our local, out-dated (pre-5.6) version:


abs - absolute value function



abs VALUE

abs



Returns the absolute value of its argument. If VALUE is omitted, uses $_.


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Corion]: hippo: At least for the German translation, the wordplay is translated as well
[Discipulus]: always! but if i can ask choroba why you always use the inverted (to me) form 1 == $.?
[choroba]: To avoid accidental overwriting of the variable in if ($x = 3)
[karlgoethebier]: Corion: Auch in hessisch? Mer wasses net.
[Corion]: Hmm - I'm not sure, I haven't read the mundart/slang translations ;)
[Eily]: $F[1] =~ s/^0//r could be written as (0+$F[1]). It's less explicit though
[Discipulus]: ah! seems wise choroba, you play safe
[shmem]: Eily: also -+-$F[1]

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-05-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?