Hi I have a float filed and if the value is 2.17 I want to round up to 3. So always round up 1?
I cant comment but below will not work becasue I only want to round up. Below will round up and down. I belive I need to use math.ceil
but cant find any examples
from odoo.tools import float_round
round(field_name
But it’s working for me like when value is 3.45 than it’s show 3 and if value js 3.51 than it will be show 4
Hello. Did you solved? how you did it? i want to print values rounded up (ceiling) but I don´t know how to do it. In my case is just for PDF purpouses. Thanks