Help for this page

Select Code to Download


  1. or download this
    print "contains fractional component\n" if $number =~ /\.(?!0*$)/;
    
  2. or download this
    sub r { $_[0] ? 'fractional' : 'integer' }
    
    ...
          "\n",
       );
    }
    
  3. or download this
    1.00:
    method 1: fractional
    ...
    method 2: fractional
    method 3: integer
    method 4: integer