Translations:SVG-Dashboards/29/en: история изменений

Выбор версий: отметьте версии страницы, которые вы хотите сравнить, и нажмите Enter или кнопку ниже.
Пояснения: (текущ.) — отличия от текущей версии; (пред.) — отличия от предшествующей версии; м — малое изменения.

  • текущ.пред. 12:53, 4 августа 2023A.Degtyarev обсуждение вклад 384 байта +384 Новая страница: «=== 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>»