We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Topic: Built in Function or Library of Routine
SI# Name of the Description Example
Function 1 LENGTH() LENGTH(ThisString : STRING) RETURNS INTEGER LENGTH("Happy Days") returns the integer value representing the returns 10 length of ThisString. 2 SUBSTRING() SUBSTRING(ThisString : STRING, Value1 : SUBSTRING("art nouveau", 5, INTEGER, Value2 : INTEGER) RETURNS STRING 7) returns "nouveau" returns a sub-string from within ThisString. Value1 is the start index position (counting from the left, starting with 1). Value2 is the final index position. 3 MOD() MOD(ThisNum : INTEGER, ThisDiv : INTEGER) MOD(10,3) returns 1 RETURNS INTEGER returns the integer value representing the remainder when ThisNum is divided by ThisDiv 4 DIV() DIV(ThisNum : INTEGER, ThisDiv : INTEGER) DIV(10,3) returns 3 RETURNS INTEGER returns the integer value representing the whole number part of the result when ThisNum is divided by ThisDiv. 5 INT() INT(x : REAL) RETURNS INTEGER returns the INT(27.5415) returns 27 integer part of x 6 FLOAT() FLOAT(x : INTEGER) RETURNS REAL returns the FLOAT(32) returns 32.0 value of x with decimal 7 UCASE() UCASE(ThisChar : CHAR) RETURNS CHAR UCASE('a') returns 'A' returns the character value representing the upper case equivalent of ThisChar If ThisChar is not a lower case alphabetic character, it is returned unchanged. 8 LCASE() LCASE(ThisChar : CHAR) RETURNS CHAR returns LCASE('W') returns 'w' the character value representing the lower case equivalent of ThisChar. If ThisChar is not an upper-case alphabetic character then it is returned unchanged. 9 ROUND() The ROUND() function returns a floating point ROUND(2.15, 1) returns 2.2 number that is a rounded version of the specified number, with the specified number of decimals. The default number of decimals is 0, meaning that the function will return the nearest integer.