⚙️ Augmentation de la précision des valeurs dans l'explication
parent
4ff89770ff
commit
acb30ca425
|
@ -21,7 +21,7 @@ let treatValue = (data, language) =>
|
|||
|
||||
export let formatNumber = (data, language) =>
|
||||
!isNaN(data)
|
||||
? Intl.NumberFormat(language, { maximumFractionDigits: 2 }).format(data)
|
||||
? Intl.NumberFormat(language, { maximumFractionDigits: 4 }).format(data)
|
||||
: data
|
||||
|
||||
export let NodeValue = withLanguage(({ data, language }) => (
|
||||
|
|
Loading…
Reference in New Issue