Ne pas arrondir les constantes dans la documentation

C'était perturbant d'afficher un taux à 0,03% alors que la valeur utilisée
est 0,024%
pull/724/head
Maxime Quandalle 2019-10-10 11:46:04 +02:00
parent 39c2885ec8
commit e0e1e97de9
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
1 changed files with 7 additions and 1 deletions

View File

@ -162,7 +162,13 @@ export let parseObject = (rules, rule, parsedRules) => rawNode => {
// eslint-disable-next-line
jsx: () => (
<span className={v.type}>
{formatValue({ unit: v.unit, value: v.nodeValue })}
{formatValue({
unit: v.unit,
value: v.nodeValue,
// We want to display constants with full precision,
// espacilly for percentages like APEC 0,036 %
maximumFractionDigits: 5
})}
</span>
)
})