The dataView.setFloat32() is an inbuilt function in dataView that is used to store a signed 32-bit float value at the specified location i.e, at byte offset from the start of the dataView.
Parameters: It has the parameter byteOffset which is offset in a byte and it says from the start of the view where to read the data.
Return value: This function does not return anything.
Below are examples of the dataView.setFloat32() Method.
Example 3: The below code sets the value of PI as Math.PI and gives the output as the value of PI.
Code #3: When nothing as data is used to store then it gives the output as NaN i.e, not a number.
- Google Chrome 9 and above
- Edge 12 and above
- Firefox 15 and above
- Internet Explorer 10 and above
- Opera 12.1 and above
- Safari 5.1 and above