History of Math.trunc() Revision history for: English (US) Aug 23, 2016, 10:40:51 AM fscholz Previous Aug 19, 2016, 7:37:35 PM lukewestby ~~x truncates but also clamps 64-bit numbers to 32-bit integers. Using the current polyfill will only work for the range (-858993459, 858993459). The one I added works for all numbers in (-Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER). Thanks! Previous Aug 4, 2016, 11:48:45 AM Evan Prodromou Some wordsmithing for the first couple of paragraphs Previous Jul 31, 2016, 4:37:23 AM eduardoboucas Add "Return value" section as per Bug 1287421 Previous Jul 20, 2016, 2:53:14 AM rtrust1 optimized polyfill Previous Dec 28, 2015, 4:27:18 PM fscholz Remove {{harmony}}; remove "Experimental" tag; remove {{experimental_inline}}; add link to ES draft spec Previous Jul 8, 2015, 5:18:45 AM fscholz fix compat parsing error; cleanup Previous Feb 6, 2015, 4:08:05 AM Mingun Standardized and cleaned markup, added {{jsxref}} and {{Compat*}} macros, fixed polyfill, added links to "See also" section, added `Reference` tag. Previous Jan 28, 2015, 4:16:38 AM ziyunfei Previous Jan 28, 2015, 4:12:26 AM ziyunfei