Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "Output using sprint and %.0f := ", sprintf("%.0f", $value), "\n
    +";
    
    exit 0;
    
  2. or download this
    Output using sprint and %d := -1
    Output using sprint and %D (equivalent to %ld) := -1
    Output using sprint and %f := 12345678901234567168.000000
    Output using sprint and %.0f := 12345678901234567168