[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.InputNumberBuilder.Truncate

Truncate Method

Truncate(bool)

Configurates Truncate. Sets whether the control truncates numeric values that exceed the decimal precision defined by Format(string), instead of applying rounding.

Declaration
public virtual InputNumberBuilder Truncate(bool value)
Public Overridable Function Truncate(value As Boolean) As InputNumberBuilder
Parameters
Type Name Description
bool value

The value.

Returns
Type Description
InputNumberBuilder

Current builder.

Remarks

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.