Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Integer Literals in Perl

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

Integer literals in Perl are pretty straight forward

Here are some examples
143
-3
-8431
42
0

Theres a little bit more to know about float literals.

Replies are listed 'Best First'.
Re: Integer Literals in Perl
by Anonymous Monk on Mar 27, 2002 at 01:42 UTC
    1_000_000 and -5_5555_5 work fine too.
        -2.3 24

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: perltutorial [id://943]
    help
    Chatterbox?
    [marto]: I think you can do what you want without too much hassle, but yeah, please try and let me know if it works well :)
    [marto]: sadly I've still not remembered the name of that x86 all in one we discussed
    [Corion]: marto: Heh - I looked at the Intel things and they were all at EUR 80 or upwards, and that's a bit too much (or rather, for that money, I'd look for a NAS already)
    [marto]: click bait marketing is making it harder to find stuff I can't remember based upon a few terms :(
    [Corion]: :)

    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 2018-01-17 15:21 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      How did you see in the new year?










      Results (201 votes). Check out past polls.

      Notices?