Top "Number-formatting" questions

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

Make a two-digit string from a single-digit integer

How can I have a two-digit integer in a a string, even if the integer is less than 10? [NSString stringWithFormat:@"%…

objective-c string cocoa nsstring number-formatting
What's the easiest way to add commas to an integer?

Possible Duplicate: How to print number with commas as thousands separators? For example: >> print numberFormat(1234) >> 1,234 Or …

python number-formatting
number_format() causes error "A non well formed numeric value encountered"

I am using number_format to round floats to only 2 decimal digits. The problem is that some of my inputs …

php number-formatting
Convert float to string in positional format (without scientific notation and false precision)

I want to print some floating point numbers so that they're always written in decimal form (e.g. 12345000000000000000000.0 or 0.000000000000012345, not …

python python-3.x floating-point number-formatting python-2.x
Add commas as thousands separator and floating point dot in php

I have this $example = "1234567" $subtotal = number_format($example, 2, '.', ''); the return of $subtotal is "1234567.00" how to modify the …

php comma number-formatting
How do you set percentage in Google Visualization Chart API?

How do you set the vertical axis to display percent such as 25%, 50%, 75%, 100%?

api charts google-visualization number-formatting
How to make Python format floats with certain amount of significant digits?

I want my Python (2.4.3) output numbers to have a certain format. Specifically, if the number is a terminating decimal with &…

python string number-formatting python-2.4
Number and date format : altering NLS_SESSION_PARAMETER does not work?

Oracle 11.2.0.3.0, APEX 4.1.1.00.23. We need to display numbers in our application with the format FM999999999990.000 and dates with the English format …

session oracle-apex number-formatting date-formatting nls
Java add leading zeros to a number

I need to return a string in the form xxx-xxxx where xxx is a number and xxxx is another number, …

java string number-formatting
C++ complex numbers, what is the right format?

I want to use C++ with complex numbers. Therefore I included #include <complex>. Now my question is: How …

c++ numbers number-formatting