# Math.trunc() function in JavaScript

HTMLJavascriptFront End TechnologyWeb Development

The trunc() function of the Math object accepts a number and returns its integral point (excluding the fractional part). If the given number itself is an integer this function returns the same.

## Syntax

Its Syntax is as follows

Math.trunc();

## Example

Live Demo

<html>
<title>JavaScript Example</title>
</html>
Integral part of the given number: 58