JavaScript DataView.getFloat32() methodThe JavaScript DataView.getFloat32() is an inbuilt method in dataView. It is used to get a signed 32-bit float number at a specified location. NOTE: Range of 32-bit floating point number is from -3.4+38 to +3.4E+38.SyntaxParametersbyteoffset: The offset, in a byte, from the start of the view where to read the data. Return valueThis method returns a signed 32-bit float number. Browser Support
Example 1Test it NowOutput: If we give a Float value then output will be 3.0999999046325684 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.1415927410125732 Next TopicJavaScript DataView |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India