Hello ,
I am calculating salry based on this rule but can someone tell me whats wrong with this code
result = ((float("{0:.2f}".format(contract.wage/(inputs.MD and inputs.MD.amount)))*(inputs.TD and inputs.TD.amount))+ (float(" {0:.2f}".format(contract.wage/(inputs.MD and inputs.MD.amount)/8)*(inputs.OT and inputs.OT.amount)*1.25)))
even this code is working without using float
result = ((contract.wage/(inputs.MD and inputs.MD.amount))*(inputs.TD and inputs.TD.amount))+((contract.wage/(inputs.MD and #inputs.MD.amount)/8.0)*(inputs.OT and #inputs.OT.amount)*1.25)
but there is differences in output , i want to use first one