Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
prodige
bdl-alkante-visualiseur-core
Commits
0d9bcc41
Commit
0d9bcc41
authored
Oct 27, 2022
by
ndurand
Browse files
InformationSheetFiler: correction formatage des nombres
parent
40ae083b
Changes
1
Hide whitespace changes
Inline
Side-by-side
projects/visualiseur-core/src/lib/pipes/information-sheet-filter.pipe.ts
View file @
0d9bcc41
...
...
@@ -16,10 +16,10 @@ export class InformationSheetFilterPipe implements PipeTransform {
return
value
?
'
Oui
'
:
'
Non
'
;
}
else
if
(
isFinite
(
value
as
number
))
{
if
(
typeof
value
===
'
string
'
){
value
=
parse
In
t
(
value
,
10
);
value
=
parse
Floa
t
(
value
);
}
if
(
digit
||
digit
===
0
)
{
value
=
parse
In
t
(
(
value
).
toFixed
(
digit
)
,
10
);
value
=
parse
Floa
t
(
(
value
).
toFixed
(
digit
));
}
return
value
.
toLocaleString
(
local
);
...
...
Chef Projet Prodige
@prodigeadmin
mentioned in commit
9f0a1365
·
Oct 27, 2022
mentioned in commit
9f0a1365
mentioned in commit 9f0a13654a61adb72845d7b50ea9162b93464eb5
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment