on master help sign in
Fix #640, correct types of sqrt and logBase
bfa1bc2Evan Czaplicki
changelog.md+1
@@ -13,6 +13,7 @@
13#### Breaking Changes:
13#### Breaking Changes:
14
14
15 * Unambiguous syntax for importing ADTs and type aliases (whoo!)
15 * Unambiguous syntax for importing ADTs and type aliases (whoo!)
16+ * sqrt and logBase both only work on Floats now
16
17
17## 0.12.3
18## 0.12.3
18
19
libraries/Basics.elm+2−2
@@ -150,7 +150,7 @@ atan2 : Float -> Float -> Float
150atan2 = Native.Basics.atan2
150atan2 = Native.Basics.atan2
151
151
152{-| Take the square root of a number. -}
152{-| Take the square root of a number. -}
153−sqrt : number -> number
153+sqrt : Float -> Float
154sqrt = Native.Basics.sqrt
154sqrt = Native.Basics.sqrt
155
155
156{-| Take the absolute value of a number. -}
156{-| Take the absolute value of a number. -}
@@ -158,7 +158,7 @@ abs : number -> number
158abs = Native.Basics.abs
158abs = Native.Basics.abs
159
159
160{-| Calculate the logarithm of a number with a given base: `logBase 10 100 == 2` -}
160{-| Calculate the logarithm of a number with a given base: `logBase 10 100 == 2` -}
161−logBase : number -> number -> number
161+logBase : Float -> Float -> Float
162logBase = Native.Basics.logBase
162logBase = Native.Basics.logBase
163
163
164{-| Clamps a number within a given range. With the expression
164{-| Clamps a number within a given range. With the expression