As a newcomer to JavaScript, I've been searching online and trying different solutions but none have worked for me.
Currently, I have a variable called num = 71.666666666
I'm looking to limit this number to 71.66
So far, I have attempted the following:
Math.trunc(num,2) // returns 71
and
Math.round(num.2) // returns 72
If you know of any other methods in JavaScript that can help achieve this result, please suggest them to me.
Your assistance would be greatly appreciated.