Top "Number-formatting" questions

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

In Java, why does the decimal separator follow the Locale's language, not its country, and, more importantly, how does one override it?

I'm working on an international project and have observed that, in Java, the choice of the decimal separator is based …

java locale number-formatting decimal-point
How to format the input of EditText when typing with thousands separators (,) in Android?

I've an edittext , it only gets numeric without decimal numbers. android:inputType="number" I want to separate thousands while I'm …

java android android-edittext number-formatting textwatcher
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 …

javascript highcharts formatting number-formatting currency-formatting
How do I round millions and thousands in JavaScript?

I am trying to round large digits. For instance, if I have this number: 12,645,982 I want to round this number …

javascript jquery rounding number-formatting shorthand
Can you format pandas integers for display, like `pd.options.display.float_format` for floats?

I've seen this and this on formatting floating-point numbers for display in pandas, but I'm interested in doing the same …

python pandas formatting number-formatting
Formatting phone numbers based on country code

I have a database with phone numbers which I would like to format according to the country code of the …

javascript number-formatting phone-number
JasperReports: How to format numeric data with Excel exporter

I'm using iReport 2.0.2. I have a problem with formatting numeric data after generating report with help of Excel exporter. For …

jasper-reports export-to-excel number-formatting ireport
Specify thousand separator in ssrs without specifying decimal

MY database have values like 3302540.8200 748712.9600 584879.2400 20787.5300 1338075.0000 I need the above values like below in my SSRS reports 3,302,540.82 748,712.96 584,879.24 20,787.53 1,338,075 I tried custom format …

reporting-services number-formatting ssrs-2012
Convert input value to currency format when user type

I have failed to convert the input value to currency format. I want to automaticly add thousands and decimal separators …

javascript jquery string number-formatting currency-formatting
Why does .NET decimal.ToString(string) round away from zero, apparently inconsistent with the language spec?

I see that, in C#, rounding a decimal, by default, uses MidpointRounding.ToEven. This is expected, and is what the …

c# decimal tostring number-formatting rounding