Skip to main content

All Questions

0 votes
2 answers
563 views

How to format numeric values with separators starting at 1,000 instead of 10,000 using Intl.NumberFormat?

I have the following function: formatNumericValues() { const numberFormat = new Intl.NumberFormat('es', { minimumFractionDigits: 0, maximumFractionDigits: 2, }); this....
Manuel Yerbes's user avatar
-1 votes
2 answers
163 views

Is there any way I can keep the type of a percentage as number after doing number formatting?

I changed a number lets say (150) to 150.00% using number formatting. Now this is the way I want to display the number with the percentage sign. But I want it to be of number type but it is of type ...
Katsura's user avatar
0 votes
1 answer
46 views

Not properly referencing cells

I am coding a phone number formatter for a large database. Everything is working, but there is an inconsistent printing of blank cells. Most of the cells are read through and are properly formatted, ...
abittar2022's user avatar
3 votes
1 answer
509 views

How to convert numbers to be a comma separated value in Klaviyo

I have these dynamics variables which has a number. I.E) 1, 10, 350, 1200 or 12500, etc. On Klaviyo I want to format these numbers to be comma separated if it's over 1 thousand. I.E) 1200 ->...
Suzy's user avatar
  • 261
0 votes
1 answer
606 views

How can I a number to CPF format in JavaScript?

I would like to format an integer to the CPF (Cadastro de Pessoas Físicas)(Brazilian ID Number) format. I would like a function that takes an integer of 11 digits as an argument and returns a string ...
Benjamin Heinke's user avatar
-1 votes
3 answers
186 views

converting array to string in javascript while controlling precision of floats

I have a javascript array-of-number-triples, of the form [[123.55555,4.44444444,0.123455666],[12344.44444,7.77777777,8.8888101010],...,[1.000102340240,123.02020400,1.121212121212]] This converts ...
Labrador's user avatar
  • 673
1 vote
0 answers
1k views

Convert JavaScript number to a string with fixed length

I'm using Node.js to print numbers to the console and want them to be easy to read. Because the numbers are displayed in columns, they should be the same length. Is there any easy way to do this ...
Josh Grant's user avatar
1 vote
1 answer
4k views

Formatting integers with space as thousands separator

I wanted 1000 to look like 10 000. There are tons of examples to make a separator but they all show you how to start using comma or some StringLocal. How do I use space instead? Which locale should I ...
Little Alien's user avatar
0 votes
0 answers
60 views

Format number of an input

I have a system that calculates the average of fields, and then runs the javascript below , only the result comes out so 0.222048 and the correct would be 222,048 , making this conversion? <script&...
Quito Gaspar's user avatar
1 vote
1 answer
903 views

wNumb change specific value (add postfix to specific value)?

I am trying to make a slider from 0-2000, where 2000 displays as "2000+", encapsulating everything >=2000. My encoder looks like this: encoder: function(a) { a == 2000 ? a = a + '+' : null; ...
j_d's user avatar
  • 3,092
2 votes
1 answer
2k views

Input box with accounting.js formatting not letting me input decimal numbers

On my website satoshindex.com when I try and type a number with a decimal point into the top input box, it automatically deletes the decimal point. It also doesn't let me highlight the input with Ctrl-...
Darkstar's user avatar
  • 765
2 votes
2 answers
2k views

Javascript format float number

I need to format a number to always have 3 digits so numbers should look like this format(0) -> 0.00 format(1.3456) -> 1.34 format(12) -> 12.0 format(529.96) -> 529 format(12385.123) ->...
user59388's user avatar
  • 169
1 vote
2 answers
2k views

Always display number with 3 digits and descriptor

Using JavaScript, I want to format a number to always display 3 digits, along with it's proper identifier (ex: Million, Thousand). If under 100,000, the number should only show the "thousands&...
Tom Grant's user avatar
  • 428
43 votes
8 answers
91k views

Chart.js number format

I went over the Chart.js documentation and did not find anything on number formatting ie) 1,000.02 from number format "#,###.00" I also did some basic tests and it seems charts do not accept non-...
Ronald's user avatar
  • 619
11 votes
3 answers
17k views

Highcharts y axis thousands separator

How to add a thousands separator to the Y Axis of Highcharts? This is what I have: yAxis: [{ // Primary yAxis labels: {
user avatar

15 30 50 per page