Enter a numberNote: The decimal part is kept to 2 digits using toFixed(2) function. For any length of value the decimal places will remain 2 places only. ( Try by entering different length of decimal data )
Back to Tutorial of Math.toFixed() function
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.