TAXATION MANAGEMENT USING ASYCUDA++ Ó UNCTAD - SITE (V1.15) A.24 Taxation Management - Table Structures Taxation Rules Editor - Syntax Rule Functions Functions used for mathematical calculation Function Logic RoundInf(x) If N    x < N + 1 then N RoundSup(x) If N < x    N + 1 then N + 1 Round(x) If N   x < N + 0.5 then N else N + 1 Min(x, y) If x < y then x else y Max(x, y) If x > y then x else y Sqr(x) Square x * x Abs(x) Absolute value of x JulianDate(s) Convert date to julian number RoundInf(x) Logic: if N     x < N + 1 then N Syntax: Purpose: Round a decimal value to the lowest whole number Example : If the tax amount is 45.55 the RoundInf function will store and display 45. RoundSup(x) Logic: if N < x    N + 1 then N + 1 Syntax: Purpose: Round a decimal value to the highest whole number Example : if the tax amount is 45.55 the roundsup function will store and display 46 if the tax amount is 45.45 the roundsup function will store and display 46 Round(x) Logic: if N    x < N + 0.5 then N else N + 1 Syntax: Purpose: Round a decimal value to the nearest giving a whole number. Example : if the tax amount is 45.55 the round function will store and display 46. if the tax amount is 45.45 the round function will store and display 45.