Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    ...
    my $num = 999999999;
    print sprintf("%f\n",$num);
    print sprintf("%d\n",$num);
    
  2. or download this
    $string might be a phone number: 99999999999999999999999999       # se
    +e Note 2
    $string2 might be a phone number: 9-999-999-999-999-999-999-999-9999 #
    + also see Note 2
    stiller's snippet:
    999999999.000000  # a float, as stiller noted, this address's OP's pro
    +blem,
    999999999         # whereas, Perl makes it easy to use this as a strin
    +g