JavaScript DataView.getInt32() methodThe JavaScript DataView.getInt32() is an inbuilt method in dataView. It is used to get a signed 32-bit integer(long) number at a specified location. NOTE: Range of 32-bit integer value is from 2,147,483,648 to 2,147,483,647 for signed integer value.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 integer number. Browser Support
Example 1Test it NowOutput: If we give a float value, the output will be an Integer 23 Example 2Test it NowOutput: If there is no data to be stored, Output will Be : 0 Example 3Test it NowOutput: Convert the PI value 3.14 to 3 3 Example 4Test it NowOutput: If we give an Integer value, Output will be Integer 7 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