diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-10 10:54:44 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-10 10:54:44 +0100 |
commit | 833c1d4fca199800705ac76b1ee9d57aa63cacf1 (patch) | |
tree | 5d013e9048897efd7e7f865be29b44a08afc590e /server/sonar-web/src/main/js | |
parent | 4904c052b4e5f7ed0e061655a6b1a8a3e4f8e2ad (diff) | |
download | sonarqube-833c1d4fca199800705ac76b1ee9d57aa63cacf1.tar.gz sonarqube-833c1d4fca199800705ac76b1ee9d57aa63cacf1.zip |
respect precision of float metrics during web formatting
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/measures.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/helpers/measures.js b/server/sonar-web/src/main/js/helpers/measures.js index 2137e40c6b8..ffb6e576152 100644 --- a/server/sonar-web/src/main/js/helpers/measures.js +++ b/server/sonar-web/src/main/js/helpers/measures.js @@ -125,11 +125,11 @@ function shortIntVariationFormatter (value) { } function floatFormatter (value) { - return numeral(value).format('0,0.0'); + return numeral(value).format('0,0.0[0000]'); } function floatVariationFormatter (value) { - return value === 0 ? '+0.0' : numeral(value).format('+0,0.0'); + return value === 0 ? '+0.0' : numeral(value).format('+0,0.0[0000]'); } function percentFormatter (value) { |