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

number

Value to be rounded up.

maxDecimals

number

Number of decimal places to which the value is to be rounded.

Return value

Type

Description

string

The rounded value in the form of a string.

NuGet package: Beckhoff.TwinCAT.HMI.Functions

GaugeValueFormatter 1:

NuGet packages are available from version 1.12.

GaugeValueFormatter 2:

Available from 1.8