From ff22efb3e25d80b03b67bf450a103ed3cd15af5c Mon Sep 17 00:00:00 2001 From: Xotic750 Date: Wed, 21 Oct 2015 15:38:23 +0200 Subject: [PATCH] Add doc notes on IEEE 754-2008 and floating-point oddness. [ci skip] --- lodash.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lodash.js b/lodash.js index 0742c8175..32017eb53 100644 --- a/lodash.js +++ b/lodash.js @@ -10946,6 +10946,9 @@ * If `floating` is `true`, or either `min` or `max` are floats, a floating-point * number is returned instead of an integer. * + * **Note:** JavaScript follows the IEEE 754-2008 standard for resolving + * floating-point values which can produce unexpected results. + * * @static * @memberOf _ * @category Number @@ -12392,6 +12395,9 @@ * set to `start` with `start` then set to `0`. If `end` is less than `start` * a zero-length range is created unless a negative `step` is specified. * + * **Note:** JavaScript follows the IEEE 754-2008 standard for resolving + * floating-point values which can produce unexpected results. + * * @static * @memberOf _ * @category Utility