Top "Number-formatting" questions

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

How to display Currency in Indian Numbering Format in PHP

I have a question about formatting the Rupee currency (Indian Rupee - INR). For example, numbers here are represented as: 1 10 100 1,000 10,000 1,00,000 10,00,000 1,00,00,000 10,00,00,000 …

php converter currency number-formatting money-format
Add .00 (toFixed) only if number has less than two decimal places

I need to add zeroes, so that each number has at least two decimals, but without rounding. So for example: 5 …

javascript number-formatting
Excel Number Format: What is "[$-409]"?

i'm automating excel, using the macro system as a guide to what i should do through automation. When i format …

excel number-formatting
How do I format a number with a variable number of digits in Python?

Say I wanted to display the number 123 with a variable number of padded zeroes on the front. For example, if …

python string string-formatting number-formatting
Print Integer with 2 decimal places in Java

in my code i use integers multiplied by 100 as decimals (0.1 is 10 etc). Can you help me to format output to …

java format number-formatting output
VBA For Each cell In Range Format as Percentage

I've looked around for this and it seems so simple, yet I can't get it to work. I have a …

vba excel loops number-formatting percentage
How to go about formatting 1200 to 1.2k in java

I'd like to format following numbers into the numbers next to them with java: 1000 to 1k 5821 to 5.8k 10500 to 10k 101800 …

java number-formatting
Format currency without currency symbol

I am using NumberFormat.getCurrencyInstance(myLocale) to get a custom currency format for a locale given by me. However, this …

java currency number-formatting
PHP How do I round down to two decimal places?

I need to round down a decimal in PHP to two decimal places so that: 49.955 becomes... 49.95 I have tried number_…

php decimal rounding number-formatting
how to format a number to S9(5)V99 ascii in .net

I've been searching for s9(5)v99 but got different information and not really clear. Could someone shows how or the …

.net cobol number-formatting