Top "Number-formatting" questions

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

In ColdFusion, is there a numberFormat() mask to drop the decimal if it is 0?

I'm trying to format numbers so that 2 decimal places show up, unless it is a whole number - then I …

coldfusion coldfusion-9 number-formatting
Add comma to numbers every three digits in datatable (R)

Suppose my data looks like this: df1 = data.frame(A=c(1000000.51,5000.33), B=c(0.565,0.794)) I want to use DataTables and have …

r format number-formatting dt
What is the easiest way to pad a string with 0 to the left?

What is the easiest way to pad a string with 0 to the left so that "110" = "00000110" "11110000" = "11110000" I have tried to use …

rust formatting string-formatting number-formatting
RFID algorithm to get card ID

I receive bytes from an RFID reader when presenting a card, but I'm unable to figure out how to derive …

hex number-formatting uniqueidentifier rfid serial-number
Code-Golf: Friendly Number Abbreviator

Based on this question: Is there a way to round numbers into a friendly format? THE CHALLENGE - UPDATED! (removed …

language-agnostic code-golf rosetta-stone number-formatting human-readable
Change NSNumberFormatter's negative format from (xxx.xx) to -xxx.xx

I want to change my NSNumberformatter from displaying negative numbers with parenthesis around them to putting the minus sign in …

cocoa cocoa-touch number-formatting negative-number
Change to Canadian (CDN) French number formatting in Excel VBA

I would like to build a piece of code which can convert numbers in my workbook from English to French …

excel number-formatting french vba
how to reduce numbers' significance in JSON's stringify

I have an array with numbers (coordinates) and I want to display those using JSON like so JSON.stringify(array); …

javascript json number-formatting
using JTable cell editor

I am not sure why the editor i am setting for my jtable is not being called. I used the …

java swing jtable number-formatting tablecelleditor
Formatting phone number to E164 format in Android

I want convert every phone number from conatct in device to E164 format. So, I used opensource below. libphonenumber So …

android number-formatting phonenumberutils