on master help sign in
Fix #640, correct types of sqrt and logBase
commitbfa1bc2bd309048725fc9ed56983589ded3a57b5 authorEvan Czaplicki <info@elm-lang.org> dateThu 12 Jun 2014, 21:55 (12 years ago) parentad21de9
2 files changed+3−2
changelog.md+1 libraries/Basics.elm+2−2
changelog.md+1
@@ -13,6 +13,7 @@
1313#### Breaking Changes:
1414
1515 * Unambiguous syntax for importing ADTs and type aliases (whoo!)
16+ * sqrt and logBase both only work on Floats now
1617
1718## 0.12.3
1819
libraries/Basics.elm+2−2
@@ -150,7 +150,7 @@ atan2 : Float -> Float -> Float
150150atan2 = Native.Basics.atan2
151151
152152{-| Take the square root of a number. -}
153−sqrt : number -> number
153+sqrt : Float -> Float
154154sqrt = Native.Basics.sqrt
155155
156156{-| Take the absolute value of a number. -}
@@ -158,7 +158,7 @@ abs : number -> number
158158abs = Native.Basics.abs
159159
160160{-| Calculate the logarithm of a number with a given base: `logBase 10 100 == 2` -}
161−logBase : number -> number -> number
161+logBase : Float -> Float -> Float
162162logBase = Native.Basics.logBase
163163
164164{-| Clamps a number within a given range. With the expression