RIGHT$ (Function)

is a function which takes one string parameter, and one numerical parameter which gets rounded down to the nearest integer. If the number is negative, the function generates an  error. Otherwise, the result of the function is the last  characters of. (If  is zero, the result is the empty string, and if   greater than or equal to the length of , the result of the function is the same as  .)