MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

JS::DoubleValue

This article covers features introduced in SpiderMonkey 24

Convert a C floating-point number of type double to a JS::Value.

Syntax

JS::Value
JS::DoubleValue(double dbl)
Name Type Description
dbl double C double to convert.

Description

JS::DoubleValue converts a C floating-point number of type double to JS::Value, the type of JavaScript values.

The result is an floating-point JS::Value.

See Also

Document Tags and Contributors

 Contributors to this page: rolfedh, arai
 Last updated by: rolfedh,