[]
Configurates Truncate. Sets whether the control truncates numeric values that exceed the decimal precision defined by Format(string), instead of applying rounding.
public virtual InputNumberBuilder Truncate(bool value)
Public Overridable Function Truncate(value As Boolean) As InputNumberBuilder
| Type | Name | Description |
|---|---|---|
| bool | value | The value. |
| Type | Description |
|---|---|
| InputNumberBuilder | Current builder. |
For example, if format = 'n2' and the value is 99.999, setting Truncate(bool) to true will store 99.99 rather than rounding to 100. Default is false, which preserves the standard rounding behavior.