MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

JS::Float32Value

This article covers features introduced in SpiderMonkey 24

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

Syntax

JS::Value
JS::Float32Value(float f)
Name Type Description
f float C float to convert.

Description

JS::Float32Value converts a C floating-point number of type float 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,