Skip to content

Commit

Permalink
[frontend] Fix number of elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedae committed Sep 18, 2024
1 parent 080858e commit d30c53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-front/src/utils/Number.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const numberFormat = (number, digits = 2) => {
}
}
return {
number: Number.parseInt((number / si[i].value).toFixed(digits).replace(rx, '$1'), 10),
number: Number.parseFloat((number / si[i].value).toFixed(digits).replace(rx, '$1')),
symbol: si[i].symbol,
original: number,
};
Expand Down

0 comments on commit d30c53d

Please sign in to comment.