[−][src]Crate json_compare
Functions
coerce_to_f64 |
|
coerce_to_str | The javascript operation |
greater_equal_than | |
greater_than | |
is_abstract_equal | |
is_strict_equal | See https://www.ecma-international.org/ecma-262/#sec-strict-equality-comparison |
is_truthy | See http://jsonlogic.com/truthy.html |
less_equal_than | |
less_than | |
parse_float | From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat parseFloat is a top-level function and not a method of any object. - If parseFloat encounters a character other than a plus sign (+), minus sign (- U+002D HYPHEN-MINUS), numeral (0–9), decimal point (.), or exponent (e or E), it returns the value up to that character, ignoring the invalid character and characters following it. - A second decimal point also stops parsing (characters up to that point will still be parsed). - Leading and trailing spaces in the argument are ignored. - If the argument’s first character can’t be converted to a number (it’s not any of the above characters), parseFloat returns NaN. - parseFloat can also parse and return Infinity. - parseFloat converts BigInt syntax to Numbers, losing precision. This happens because the trailing n character is discarded. |