Below is the example of the dataView.setFloat64() Method.
The dataView.setFloat64() is an inbuilt function in dataView which is used to store a signed 64-bit float value at the specified location i.e, at byte offset from the start of the dataView.
Parameters: It has parameter byteOffset which is offset in byte i.e. from the start of the view were to read the data.
Return value: This function does not return anything.
Input: dataview1.setFloat64(1, 56.24); Output: 56.24
Input: dataview1.setFloat64(1, Math.PI); Output: 3.141592653589793
The below code sets the value of PI using Math.PI and gives the output as the value of PI.
When there is no data to be stored 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