Created
January 30, 2022 17:49
-
-
Save K-Vishwak/4d285415acad33fcdc4ed16351513d84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const num = 10.547; | |
console.log(Math.trunc(num)); | |
> 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment