ParaLib 2.0.15-master SHA: 2e03d68caa
Customized format of parameter values

The parametervalue can be formatted with the format-field in the Parameter definition. This field has the syntax of the .Net framework which is formatted here: https://docs.microsoft.com/de-de/dotnet/api/system.string.format?view=net-6.0

common examples:

  • "{0}V" - Number with unit Volt, For floats the max number of digits will be used.
  • "{0:0.00}rpm" - fractional number with two fractional digits and unit rpm
  • "{0:0.##}rpm" - fractional number with two fractional digits if necessary and unit rpm
  • "0x{0:X4}" - Hexadezimal integer with four places and prefix 0x

Special formats that are not part of the .Net framework

  • "[Q16]{0:0.00}" - fractional number with two fractions generated from an integer in Q16 format.
  • "[DEG]{0:0.00}°" - fractional number Dezimalzahl with two positions,. generated from an integer. Maxint represents 360 degrees.
  • "[%]{0:0.00}°" - dezimal number with two places generated from an integer interpreted as percent. Maxint represents 100%.