TAXATION MANAGEMENT USING ASYCUDA++ Ó UNCTAD - SITE (V1.15) A.25 Min(x, y) Logic: if x < y then x else y Syntax: Purpose: to select the smallest of two quantities Example : Max(x, y) Logic: if x > y then x else y Syntax: Purpose: to select the largest of two quantities Example : Sqr(x) Logic: square x * x Syntax: Purpose: to  multiply a value by itself Example : Abs(x) Logic absolute x Syntax: Purpose: absolute value of x Example : JulianDate(s) Logic Convert date to julian number Syntax: JulianDate(YYYYMMDD) Purpose: To transform a date into an integer which can be used to count the number of days between two dates. Example : Num01 is Juliandate(20000112) -  Juliandate(19991123). This functions stores in Num01 the number of days between 23 November 1999 and 12 January 2000.