3
Most read
6
Most read
7
Most read
Predefined Functions
Predefined Functions
 A predefined function is a subroutine included in a
programming language that carries out a specific task.
 This can save the programmer time because they don’t
have to write the code.
Predefined Functions
Examples:
ROUND - takes a number and returns the nearest whole
number, or to a given number of decimal places.
ROUND(41.25) would return 41
ROUND(41.2563, 2) would return 41.26
Predefined Functions
Examples:
LEN or LENGTH - returns the length of a specified string
LEN(“Hello World”) would return 11
Predefined Functions
Examples:
RANDOM - returns a random number
RANDOM(1, 10) would return a random number between 1
and 10
Parameters
Notice that after the name of each function we add some
information
This is known as a parameter
We can pass one or more parameters to a function
Parameters
LEN(“Hello World”) ROUND(41.2563, 2)
Parameters
RANDOM(1, 10)

SDD Predefined Functions