GaugeValueFormatter
function GaugeValueFormatter(value: number, maxDecimals = Infinity): string
The function GaugeValueFormatter rounds up a numerical value to a transferred number of decimal places.
Parameter
Name | Type | Description |
---|---|---|
value | Value to be rounded up. | |
maxDecimals | Number of decimal places to which the value is to be rounded. |
Return value
Type | Description |
---|---|
The rounded value in the form of a string. |
NuGet package: Beckhoff.TwinCAT.HMI.Functions
NuGet packages are available from version 1.12. |
Available from 1.8 |