numbers
- Started
- Last post
- 17 Responses
- ********
When you write 2000 or 200000.. what is the formal way to write it? 2,000 or 2.000 / 200,000 or 200.000? :)
- GeorgesII0
2000
200.000
2.000 is 2
- ********0
what?
- jamble0
2,000
20,000
- ********0
ok - thanks mates
- Dancer0
It depends where your from
- kelpie0
20'000 over this side
- Stugoo0
every 3 numbers put in a comma for readabiiilililililility
- thebottlerocket0
depends where you are
UK Aus and USA (maybe) 2,000
Comma seperates thousands, and a decimal point seperates decimals.Whereas in France it is:
2.000,00
The rest of europe and asia, i have no idea.
- notice you didnt mention latin america... wow!********
- I didn't know about latin america, so i couldn't comment on itthebottlerocket
- notice you didnt mention latin america... wow!
- ********0
would be nice if someone knows where to find this oficial information.. cmon! we are designers.. we must know this! :D
- Dancer0
So which country are you designing for?
- ********0
universal
- NotByHand0
2,:';.000 then... just to be safe...
- Fariska0
http://en.wikipedia.org/wiki/Dec…
Acutally the convention depends from the country.
In Italy we use the comma for the decimals and the point for separating the thousands
- neverblink0
;)
function prettyLargeNumber(num,lang){
// set language specific seperators
if(lang=="EN"){
seperator = ",";
decSep = ".";
}else{
seperator = ".";
decSep = ",";
}var out = "";
var inp = num.toString();// check to see if there are decimals
var comma = inp.indexOf(decSep);
if(comma!=-1){
var decimals = inp.substr(comma);
var inp = inp.substr(0,comma);
}// add seperator at 3 digit intervals from the back
var numLength = inp.length;
while(3<numLength){
out = seperator + inp.substring(numLength-3,numLen... + out;
numLength = numLength-3;
}// add first digits to string (less then three)
out = inp.substring(0,numLength) + out;// if there were decimals add them to string
if(decimals){
out += decimals;
}return out;
}- could be rewritten to be only four lines, but I had this lying around and didn't want to botherneverblink
- ********0
Cool, but I dont need AS... it is PRINT!
- neverblink0
don't worry.. it'll also work in scriptographer for Illustrator ;)
- ********0
Lolz