Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 484 Bytes

lang_javascript.adoc

File metadata and controls

11 lines (9 loc) · 484 Bytes

Kaitai Struct: JavaScript notes

Approximate 64-bit integers

Current JavaScript specification lacks direct access to anything like int64 type. Instead, accessing long integers would automatically represent them internally as double-precision IEEE754 floats, potentially losing least significant bits. It should be ok for smaller integers (up to 56 significant bits), but note that JavaScript would use approximate values for everything beyond that.