
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Math. fround() function in JavaScript
The fround() function of the Math object accepts a floating point number and returns the nearest 32-bit single precision float representation of a Number. If the given number itself is an integer this function returns the same.
Syntax
Its Syntax is as follows
Math.fround(160.98)
Example
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.fround(160.98); document.write("Fround value: "+result); </script> </body> </html>
Output
Fround value: 160.97999572753906
- Related Articles
- Math. hypot() function in JavaScript
- Implementing Math function and return m^n in JavaScript
- Get minimum number without a Math function JavaScript
- JavaScript Math Object example
- What is math object in JavaScript?
- What are JavaScript Math Functions?
- What is Math Object in JavaScript Program?
- Check for perfect square without using Math libraries - JavaScript
- Math Class in C#
- Java multiplyExact() in Math
- JavaScript: How to Find Min/Max Values Without Math Functions?
- Math class methods in C#
- Math class methods in Java Programming
- Math Operations on BigInteger in Java
- Math operations for BigDecimal in Java

Advertisements