[website] [number_format] [fix] moved js function & added amount to order list
This commit is contained in:
parent
0ba8523b1c
commit
60a5033a4c
2 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue