@@ -30,6 +30,9 @@ are your tuples so big?
30# Number Conversions
30# Number Conversions
31@docs round, floor, ceiling, truncate, toFloat
31@docs round, floor, ceiling, truncate, toFloat
33+# Floating Point Checks
33# Angle Conversions
36# Angle Conversions
34All angle conversions result in “standard Elm angles”
37All angle conversions result in “standard Elm angles”
35which happen to be radians.
38which happen to be radians.
@@ -271,6 +274,17 @@ ceiling = Native.Basics.ceiling
271toFloat : Int -> Float
274toFloat : Int -> Float
272toFloat = Native.Basics.toFloat
275toFloat = Native.Basics.toFloat
277+{- | Determines whether a float is an undefined or unrepresentable number,
278+such as 0/0. NaN stands for *not a number*.
280+isNaN : Float -> Bool
281+isNaN = Native.Basics.isNaN
283+{- | Determines whether a float is finite. Positive and negative infinity are
284+valid floating point numbers, created by computations like `1/0` and `-1/0`.
286+isFinite : Float -> Bool
287+isFinite = Native.Basics.isFinite
275-- Function Helpers
289-- Function Helpers