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

Float Literals in Perl

by root (Scribe)
on Nov 05, 1999 at 02:18 UTC ( #944=perltutorial: print w/ replies, xml ) Need Help??

Floats in Perl can be represented in all the ways that C would allow you to
Here are some examples for you:
0.1 
-123.4
-10e4  # (-10) times 10 to the fourth power
-10E4  # the same thing
-1E5   # Another way to say the same thing
-1e-6  # -1 * 10 to the -6th power

String literals in Perl have some interesting characteristics you should learn about.

Comment on Float Literals in Perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-04-19 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls