File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 11//// Functions for working with floats.
2+ ////
3+ //// ## Float representation
4+ ////
5+ //// Floats are represented as 64 bit floating point numbers on both the Erlang
6+ //// and JavaScript runtimes. The floating point behaviour is native to their
7+ //// respective runtimes, so their exact behaviour will be slightly different on
8+ //// the two runtimes.
9+ ////
10+ //// ### Infinity and NaN
11+ ////
12+ //// Under the JavaScript runtime, exceeding the maximum (or minimum)
13+ //// representable value for a floating point value will result in Infinity (or
14+ //// -Infinity). Should you try to divide two infinities you will get NaN as a
15+ //// result.
16+ ////
17+ //// When running on BEAM, exceeding the maximum (or minimum) representable
18+ //// value for a floating point value will raise an error.
219////
320//// ## Division by zero
421////
You can’t perform that action at this time.
0 commit comments