JavaScript DataView.getFloat64() methodThe JavaScript DataView.getFloat64() is an inbuilt method in dataView. It is used to get a signed 64-bit float(double) number at a specified location. NOTE: Range of 64-bit floating point number is from -1.7+308 to +1.7E+308.SyntaxParametersbyteoffset: The offset, in a byte, from the start of the view where to read the data. Return valueA signed 64-bit float number. Browser Support
Example 1Test it NowOutput: If we give a Float value then output will be 5.7 Example 2Test it NowOutput: if there is no data to be stored, then Output will Be: NaN Example 3Test it NowOutput: PI value will be 3.141592653589793
Next TopicJavaScript DataView
|