Douglas Crockford

Blog

Books

Videos

2024 Appearances

JavaScript

Misty

JSLint

JSON

Github

Electric Communities

Mastodon/Layer8

Flickr Photo Album

ResearchGate

LinkedIn

Pronouns: pe/per

About

Deconstruct

Enter a numeric expression: 


I wrote a function called deconstruct for How JavaScript Works. It breaks a binary floating point number down to its fundamental parts. You can use those parts to precisely compute the actual numeric value. If the number includes a decimal point or is very large, it is likely that its actual value is different than its literal value. This difference is called an error.

DEC64 does not have this error.