1👍
✅
This automatically happens in JS i believe.
You can use toFixed()
max limit of 20;
Have you tried this
max: scalesMax.toFixed(20)
Source:stackexchange.com