JavaScript DataView.getFloat32()

The JavaScript DataView.getFloat32() inserts a signed 32-bit float number at a specified location.

Range of 32-bit float number:

-3.4+38 to +3.4E+38

Syntax:

dataview.getFloat32 (byteOffset)

Parameters:
byteoffset: It represents the offset (in bytes) from the start of the data view.

Return:
Signed float number of 32-bit.

Example:

<!DOCTYPE html>
<html>
<body>
<script>
var dv = new ArrayBuffer(8);
var a = new DataView(dv);
a.setFloat32(1,2.3);
document.write(a.getFloat32(1));
</script>
</body>
</html>