@@ -22,7 +22,7 @@ are your tuples so big?
22@docs not, (&&), (||), xor, otherwise
22@docs not, (&&), (||), xor, otherwise
24# Mathematics
24# Mathematics
25−@docs (+), (-), (*), (/), (^), div, rem, mod, abs, sqrt, clamp, logBase, e
25+@docs (+), (-), (*), (/), (^), (//), rem, (%), abs, sqrt, clamp, logBase, e
27# Trigonometry
27# Trigonometry
28@docs pi, cos, sin, tan, acos, asin, atan, atan2
28@docs pi, cos, sin, tan, acos, asin, atan, atan2
@@ -97,21 +97,29 @@ infixl 7 *
100−infixl 7 `div`
100+infixl 7 //
101−infixl 7 `mod`
101+infixl 7 %
102infixl 7 `rem`
102infixl 7 `rem`
104{-| Integer division, remainder is discarded. -}
104{-| Integer division, remainder is discarded. -}
105−div : Int -> Int -> Int
105+(//) : Int -> Int -> Int
106−div = Native.Basics.div
106+(//) = Native.Basics.div
108−{-| Finds the remainder after dividing one number by another: ``4 `rem` 3 == 1`` -}
108+{-| Finds the remainder after dividing one number by another:
109rem : Int -> Int -> Int
113rem : Int -> Int -> Int
110rem = Native.Basics.rem
114rem = Native.Basics.rem
112−{-| Perform modular arithmetic: ``7 `mod` 2 == 1`` -}
116+{-| Perform [modular arithmetic](http://en.wikipedia.org/wiki/Modular_arithmetic):
113−mod : Int -> Int -> Int
121+(%) : Int -> Int -> Int
114−mod = Native.Basics.mod
122+(%) = Native.Basics.mod
116{-| Exponentiation: `3^2 == 9` -}
124{-| Exponentiation: `3^2 == 9` -}
117(^) : number -> number -> number
125(^) : number -> number -> number