Project

General

Profile

Improvement #2336

Updated by liaham 8 months ago

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

 ``` ruby 
       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:  

 ![](clipboard-202408151255-hjxob.png) 

Back