In python, I am using rounding to 1 decimal. But If a number is 0.03 or 0.005, then It should show until the last number in the decimal places.
def calculate_total(number):
# some number calcualtions
number = round(number, 1)
print(number)
calculate_total(66.36) # 66.4
calculate_total(3.34) # 3.3
calculate_total(3.34) # 3.3
calculate_total(0.03) # 0.0 (But it should show 0.03)
calculate_total(0.0364) # 0.0 (But it should show 0.04)