Skip to main content

Other differences with JavaScript

This document lists differences in semantics between DeviceScript and EcmaScript/JavaScript/TypeScript (referred to as JS in this document).

Subnormals

DeviceScript doesn't support subnormals, that is numbers is range around -5e-324 to 5e-324 are rounded to zero (it follows that negative zero is not supported). Subnormals are not required by the JS specs.