anyone know how f-string roundup work, I want to around to decimal 2 position but I found out f-string does not round up for decimal 2 position
>>> a = 0.1235
>>> f'{a:.3f}'
'0.124' #as expect
>>> a = 0.125
>>> f'{a:.2f}'
'0.12' # why not 0.13?
>>>
anyone know how f-string roundup work, I want to around to decimal 2 position but I found out f-string does not round up for decimal 2 position
>>> a = 0.1235
>>> f'{a:.3f}'
'0.124' #as expect
>>> a = 0.125
>>> f'{a:.2f}'
'0.12' # why not 0.13?
>>>