|
|
Q1503 How do I round a number which is separated by commas to 2 decimal places, e.g. 10,987.9876 to 10987.98?
irt.org | Knowledge Base | JavaScript | Number | Q1503 [ previous next ] Q1503 How do I round a number which is separated by commas to 2 decimal places, e.g. 10,987.9876 to 10987.98?If there is a comma it is not a number but a string. Do this:
|
-- div -->
|