Help for this page

Select Code to Download


  1. or download this
    perl -e"print 4.5 % -1.25"
    0
    ...
    
    \ruby\bin\ruby -e"print 4.5 % 1.25"
    0.75
    
  2. or download this
    Prelude> 4.5 `mod` 1.25
    
    ...
          `Integral a' arising from use of `mod' at <interactive>:1:4-8
          `Fractional a' arising from the literal `4.5' at <interactive>:1
    +:0-2
        Probable fix: add a type signature that fixes these type variable(
    +s)