Commit 0d9bcc41 authored by ndurand's avatar ndurand
Browse files

InformationSheetFiler: correction formatage des nombres

parent 40ae083b
......@@ -16,10 +16,10 @@ export class InformationSheetFilterPipe implements PipeTransform {
return value ? 'Oui' : 'Non';
} else if (isFinite(value as number)) {
if (typeof value === 'string'){
value = parseInt(value, 10);
value = parseFloat(value);
}
if (digit || digit === 0) {
value = parseInt( (value).toFixed(digit), 10);
value = parseFloat( (value).toFixed(digit));
}
return value.toLocaleString(local);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment