Help for this page

Select Code to Download


  1. or download this
    >perl -wle"print '1/2'+0"
    Argument "1/2" isn't numeric in addition (+) at -e line 1.
    ...
    >perl -wle"print '123/456'+0"
    Argument "123/456" isn't numeric in addition (+) at -e line 1.
    123
    
  2. or download this
    >perl -MMath::BigRat -wle"print Math::BigRat->new('1/2')->numify();"
    0.5