Skip to content
Snippets Groups Projects
Commit f0085c00 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-master' into 'pregmod-master'

missing function

See merge request pregmodfan/fc-pregmod!1036
parents 3ca336d5 f1a83faa
No related branches found
No related tags found
No related merge requests found
...@@ -378,6 +378,13 @@ window.Categorizer.prototype.cat = function(val, def) { ...@@ -378,6 +378,13 @@ window.Categorizer.prototype.cat = function(val, def) {
return result; return result;
}; };
window.isFloat = function(n){
return n === +n && n !== (n|0);
}
window.isInt = function(n) {
return n === +n && n === (n|0);
}
window.numberWithCommas = function(x) { window.numberWithCommas = function(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment