number formatting #2

Open
opened 2021-08-27 17:22:34 +00:00 by nik · 0 comments
Owner

check decimal, separators & consistency of number formatting

e.g.

sprintf("€%.2f", $recordf->{amount}));

and/or

s/(\d)(?=(\d{3})+(\D|$))/$1\,/g;`

compare...

use Number::Format 'format_number';
say format_number(24511);

see also https://stackoverflow.com/a/59985527/2542050

check decimal, separators & consistency of number formatting e.g. ```perl sprintf("€%.2f", $recordf->{amount})); ``` and/or ```perl s/(\d)(?=(\d{3})+(\D|$))/$1\,/g;` ``` compare... ```perl use Number::Format 'format_number'; say format_number(24511); ``` see also https://stackoverflow.com/a/59985527/2542050
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoAM/feral-budget#2
No description provided.