TextValueField<T0>.formatString

public string formatString;

Description

The format string used to define how numeric values are displayed. The string follows standard .NET formatting conventions.

The supported numeric formats string (using 0 as an example) are:
- "0.#": Displays the numeric value with up to one decimal place, omitting trailing zeros. For example, 3.5 becomes 3.5 and 3.0 becomes 3.
-"0.00": Ensures the numeric value is displayed with exactly two decimal places. For example, 3.5 is displayed as 3.50 and 3 as 3.00.
-"0": Displays only the integer part of a numeric value, rounding if necessary. For example, 3.5 becomes 4 and 3.0 becomes 3.


Did you find this page useful? Please give it a rating: