Baseline Widely available
Number.EPSILON
ìì±(property)ì Number
íì¼ë¡ ííë ì ìë 1ê³¼ 1ë³´ë¤ í° ê° ì¤ìì ê°ì¥ ìì ê°ì, ì°¨ì
ëë¤.
ë¹ì ì ì´ ì ì ìì±ì ì ê·¼í기 ìíì¬ Number
ê°ì²´ë¥¼ ìì±í íìê° ììµëë¤. Number.EPSILON
ì ì°ë©´ ë©ëë¤.
ì´ EPSILON
ìì±ì ëëµ 2.2204460492503130808472633361816E-16
ëë 2^-52
ì ê°ì ê°ìµëë¤.
const x = 0.2,
y = 0.3,
z = 0.1;
let equal = Math.abs(x - y + z) < Number.EPSILON;
ëª
ì¸ ë¸ë¼ì°ì í¸íì± ê´ë ¨ë 문ì
Number
ê°ì²´RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4