Project

General

Profile

Actions

Improvement #2336

closed

xmera Omnia - Improvement #1837: Improvements of diverse modules

Show float number with two digits by default

Added by liaham 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
08/15/2024
Due date:
08/15/2024
% Done:

100%

Estimated time:
Compatible Redmine Version:
5.1.z

Description

Will show 2 instead of 1 digit for float numbers
where there are zero values on the right side,
e.g. 1.200,00.

      number_with_precision(object, delimiter: ::I18n.t('number.format.delimiter'),
                                    separator: ::I18n.t('number.format.separator'),
                                    strip_insignificant_zeros: false,
                                    precision: 2)

A float will look like this in an issue:


Files

Actions

Also available in: Atom PDF