improve file previews
This commit is contained in:
1 parent
881796b416
commit
4f0393a674
3 files changed
+32
-10
No files matched your search
@@ -67,6 +67,10 @@ function formatNumber(amt, precision) {
|
||||
return amt
|
||||
}
|
||||
|
||||
function formatThousands(x) {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
||||
}
|
||||
|
||||
function formatDataVolume(amt, precision) {
|
||||
if (precision < 3) { precision = 3; }
|
||||
if (amt >= 1e12) {
|
||||
|
||||
Reference in new issue
Block a user