[website] [number_format] [fix] moved js function & added amount to order list

This commit is contained in:
Rushabh Mehta 2013-03-22 14:56:30 +05:30
parent 0ba8523b1c
commit 60a5033a4c
2 changed files with 7 additions and 7 deletions

View file

@ -189,9 +189,4 @@ function add_lists(l1, l2) {
function docstring(obj) {
return JSON.stringify(obj);
}
function roundNumber(num, dec) {
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
return result;
}
}

View file

@ -150,4 +150,9 @@ function get_number_format_info(format) {
info = {decimal_str:".", group_sep:",", precision:2};
}
return info;
}
}
function roundNumber(num, dec) {
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
return result;
}