Format number based on current user locale, without decimals.
Number to display, either as a float or an integer.
The rounding method, "round" will round to the nearest integer, "ceil" will round up and "floor" will round down. Default is "round".
formatted number string.
1.1.0
Browser support: Chrome 24, Edge 12, Firefox 29, Opera 15, Safari 10, Node 0.23, Deno 1.8, Bun 1
Format number based on current user locale, without decimals.