number or null when empty Control value:null
bigint . Just put bigint attribute and set new values for min , max and precision properties.
Control value:777900719925474099100n
Textfield : put any number of Icons and Tooltips inside (and control their order and color), modify the size of the textbox and etc. Explore its documentation page for more customization options. prefix / postfix parameters to set non-removable text before / after the number. For currency symbols, use the Currency pipe.
TuiNumberFormat with negativePattern: 'minusFirst' allow to position the minus sign before the currency symbol.
step property enables side buttons to increase / decrease the number by the specified step value. Additionally, the ArrowUp / ArrowDown keyboard keys provide the same functionality. TuiValueTransformer is a great opportunity to override default form control's value format without breaking component's internal logic. This example demonstrates how to use NaN -value for empty textfield instead of default null -value to keep type strictly "number" .
Control value: NaN
[quantum] allows to set minimum indivisible value. Form control value never contains a number that is not divisible by value of this property. Even if user enters any invalid number, it will be rounded to the nearest valid one on blur event. In this example, form control value can only contain 0 , 0.05 , 0.1 , 0.15 ... 0.9 , 0.95 , 1 .
Control value:
0.5number type loses precision when a value contains too many digits in either the integer part, the decimal part, or both. The built‑in bigint type avoids this issue but supports only integers.
If you need to preserve all extremely large digits of both parts, you can override the built‑in TuiValueTransformer and store the number as an {significand: bigint; exp: number} instead.
Control value:
{
"significand": "123456700042n",
"exp": -5
}