Hi
i am facing rounding off issue while making Sales Return in VAT value not in all cases when it
Suppose Value AED 108.50, VAT 5 %= 5.425 ie, 5.43
But it is showing 5.43 , but once saving it becomes 5.42.
Kindly help
Hi
i am facing rounding off issue while making Sales Return in VAT value not in all cases when it
Suppose Value AED 108.50, VAT 5 %= 5.425 ie, 5.43
But it is showing 5.43 , but once saving it becomes 5.42.
Kindly help
Whether to round up or down here is a ‘policy convention’ for example https://www.theproblemsite.com/ask/2018/02/rounding-05
ok yes indeed the code:
implements this https://proxy.c2.com/cgi/wiki?BankersRounding
Except the rounding algorithm applies here to real numbers (rather than integers), to a specified number of decimal digit precision