Top "Number-formatting" questions

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

javascript number/currency formatting

I would like to format a price in JavaScript. I'd like a function which takes a float as an argument …

javascript number-formatting
Double to string conversion without scientific notation

How to convert a double into a floating-point string representation without scientific notation in the .NET Framework? "Small" samples (effective …

c# .net floating-point number-formatting
Java: double: how to ALWAYS show two decimal digits

I use double values in my project and I would like to always show the first two decimal digits, even …

java double number-formatting
How to parse number string containing commas into an integer in java?

I'm getting NumberFormatException when I try to parse 265,858 with Integer.parseInt(). Is there any way to parse it into an …

java exception number-formatting
Parse a Number from Exponential Notation

I need to parse the string "1.2345E-02" (a number expressed in exponential notation) to a decimal data type, but Decimal.…

c# .net number-formatting exponent
How to read in numbers with a comma as decimal separator?

I have a series of CSV files where numbers are formatted in the european style using commas instead of decimal …

r csv number-formatting
How to turn a float number like 293.4662543 into 293.47 in python?

How to shorten the float result I got? I only need 2 digits after the dot. Sorry I really don't know …

python number-formatting
c++: Format number with commas?

I want to write a method that will take an integer and return a std::string of that integer formatted …

c++ comma number-formatting
Phone number formatting on iOS

I have a text field where the user enters data. It's a phone number field. If the user enters 1234567890, I …

objective-c ios cocoa-touch phone-number number-formatting
Decimal separator in NumberFormat

Given a locale java.text.NumberFormat: NumberFormat numberFormat = NumberFormat.getInstance(); How can I get the character used as Decimal separator (…

java locale number-formatting