Top "Number-formatting" questions

Number formatting is the process of converting a numeric value into a string suitable for display.

Java Currency Number format

Is there a way to format a decimal as following: 100 -> "100" 100.1 -> "100.10" If it is a round number, …

java currency number-formatting
How to format numbers by prepending 0 to single-digit numbers?

I want to format a number to have two digits. The problem is caused when 0–9 is passed, so I need …

javascript number-formatting
Show only two digit after decimal

How to get the double value that is only two digit after decimal point. for example if i=348842. double i2=…

java android number-formatting
JQuery Number Formatting

There are way too many questions and answers about this basic functionality, I cannot see the wood for the trees. …

javascript jquery number-formatting
Display a decimal in scientific notation

How can I display this: Decimal('40800000000.00000000000000') as '4.08E+10'? I've tried this: >>> '%E' % …

python string-formatting number-formatting scientific-notation
How do I format a number in Java?

How do I format a number in Java? What are the "Best Practices"? Will I need to round a number …

java number-formatting
Format an Integer using Java String Format

I am wondering if it is possible, using the String.format method in Java, to give an integer preceding zeros? …

java string-formatting number-formatting
Force R not to use exponential notation (e.g. e+10)?

Can I force R to use regular numbers instead of using the e+10-like notation? I have: 1.810032e+09 # and 4 within …

r number-formatting options scientific-notation defaults
How to add leading zeros?

I have a set of data which looks something like this: anim <- c(25499,25500,25501,25502,25503,25504) sex <- c(1,2,2,1,2,1) wt &…

r formatting number-formatting r-faq
Add comma to numbers every three digits

How can I format numbers using a comma separator every three digits using jQuery? For example: ╔═══════════╦═════════════╗ ║ Input ║ Output ║ ╠═══════════╬═════════════╣ ║ 298 ║ 298 ║ ║ 2984 ║ 2,984 ║ ║ 297312984 ║ 297,312,984 ║ ╚═══════════╩═════════════╝

jquery number-formatting