Javascript Number and Currency localization -


i've run numbers , currency localization in javascript

what need convenient library that.

i responsible setting decimal separators, currency, etc.

please post best links think

most modern browsers have built in support internationalisation in form of global intl object , extensions number, string & date.

var money = 123456.12;  // display correct formatting money.tolocalestring('de-de'); // "123.456,12"  // currency money.tolocalestring('en-gb', { style: 'currency', currency: 'gbp' }); // "£123,456.12" 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -