fixed typo
This commit is contained in:
parent
01d39068b9
commit
fd6dc000d3
2 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ vz.options = {
|
|||
language: 'de',
|
||||
backendUrl: '../backend.php', // TODO default backend, store backend urls in cookies
|
||||
tuples: 300,
|
||||
precission: 2, // TODO update from backend capabilities?
|
||||
precision: 2, // TODO update from backend capabilities?
|
||||
render: 'lines',
|
||||
refresh: false,
|
||||
defaultInterval: 24*60*60*1000, // 1 day
|
||||
|
|
|
@ -333,16 +333,16 @@ vz.wui.handleControls = function () {
|
|||
};
|
||||
|
||||
/**
|
||||
* Rounding precission
|
||||
* Rounding precision
|
||||
*
|
||||
* Math.round rounds to whole numbers
|
||||
* to round to one decimal (e.g. 15.2) we multiply by 10,
|
||||
* round and reverse the multiplication again
|
||||
* therefore "vz.options.precission" needs
|
||||
* therefore "vz.options.precision" needs
|
||||
* to be set to 1 (for 1 decimal) in that case
|
||||
*/
|
||||
vz.wui.formatNumber = function(number) {
|
||||
return Math.round(number*Math.pow(10, vz.options.precission))/Math.pow(10, vz.options.precission);
|
||||
return Math.round(number*Math.pow(10, vz.options.precision))/Math.pow(10, vz.options.precision);
|
||||
}
|
||||
|
||||
vz.wui.updateHeadline = function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue