Top "Number-formatting" questions

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

Format a number with commas to separate thousands in Python

I have a large dataframe which has a column called Lead Rev. This column is a field of numbers such …

python python-3.x pandas jupyter-notebook number-formatting
Format a number to display a comma when larger than a thousand

I am writing some code in Visual Basic.net and have a question. If I have a long number, that …

vb.net string long-integer number-formatting tryparse
DecimalFormat and Double.valueOf()

I'm trying to get rid of unnecessary symbols after decimal seperator of my double value. I'm doing it this way: …

java number-formatting decimalformat
How to control number of decimal digits in write.table() output?

When working with data (e.g., in data.frame) the user can control displaying digits by using options(digits=3) and …

r excel number-formatting decimal-point output-formatting
Chart.js number format

I went over the Chart.js documentation and did not find anything on number formatting ie) 1,000.02 from number format "#,###.00" I …

javascript charts formatting number-formatting chart.js
Add 'decimal-mark' thousands separators to a number

How do I format 1000000 to 1.000.000 in Python? where the '.' is the decimal-mark thousands separator.

python format locale number-formatting digit-separator
Angular calculate percentage in the html

Angular noob here! I am trying to display a percentage value in my html as follows: <td> {{ ((myvalue/…

javascript angularjs number-formatting angularjs-interpolate
PHP remove first zeros

Want to remove all 0 placed at the beginning of some variable. Some options: if $var = 0002, we should strip first 000 ($var = 2) …

php formatting string-formatting zero number-formatting
as.numeric with comma decimal separators?

I have a large vector of strings of the form: Input = c("1,223", "12,232", "23,0") etc. That's to say, decimals separated by commas, …

string r number-formatting
Add comma thousand separator to decimal (.net)

I have a decimal number, say 1234.500. I want to display it as 1,234.5. I'm currently converting it to a double to …

.net formatting string-formatting number-formatting