Math.trunc()
Term side of the Card
Topic: Math
Unit title: Math.trunc()
Categories: Method
Explanation side of the Card
Explanation: The static method that returns the integer part of a given number by removing any fractional digits. For example, `Math.trunc(4.9)` returns 4.
Browser compatibility:
- The chrome browser supports this feature starting from version 38
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 25
- The safari browser supports this feature starting from version 8
Availability: