Decimals
Control decimal precision, separators, and locale-aware formatting.
Precision limits
Max decimal places
Try typing more than 2 decimal places - extra digits are truncated
tsx
<NumoraInput maxDecimals={2} />Min decimal places
Type "1" and blur - it becomes "1.00"
tsx
<NumoraInput decimalMinLength={2} maxDecimals={18} />Separators
European format
Type a number - displayed as "1.234,56"
tsx
<NumoraInput decimalSeparator="," thousandSeparator="." formatOn={FormatOn.Change} />For locale-aware separator detection, see Locale.
Automatic behaviors
- Comma/dot conversion - when no thousand separator is set, both
,and.keystrokes map to the configured decimal separator - Duplicate prevention - typing a second decimal separator is blocked
- Paste cleanup - if multiple separators appear (e.g.
"12.34.56"), all but the first are removed ("12.3456")