16 534
правки
(Новая страница: «=== Rounding values === Often, values from sensors come with several decimal places, if you do not need such accuracy in the svg panel, then they can be rounded: <syntaxhighlight lang="javascript"> val.toFixed(n) //round the value of the variable val to n decimal places val.toFixed(2) //round the value of the variable val to two decimal places 220.238 → 220.24 </syntaxhighlight>») |
(нет различий)
|