Skip to content

Commit

Permalink
SH-5 Scientific format is shown for negative numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Xel4ek committed Mar 28, 2023
1 parent c3e9254 commit 22559bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/filters/filters.js
Expand Up @@ -192,7 +192,7 @@ myApp.filter('numberFixedLen', function () {
var num = parseFloat(val);
if (isNaN(num)) {
return val;
} else if (num > 1) {
} else if (Math.abs(num) > 1) {
return num.toFixed(len);
} else {
return num.toPrecision(3)
Expand Down

0 comments on commit 22559bd

Please sign in to comment.