Ring/Lessons/Mathematical Functions

Mathematical Functions
In this chapter we are going to learn about the mathematical functions

List of functions
The Ring programming language comes with the next mathematical functions

Example
Program Output:

Random Function
The Random function generate a random number and we can set the maximum value (optional).

Syntax:

Example:

Program Output:

Unsigned Function
We can use unsigned numbers using the Unsigned function.

Syntax:

Example:

Output:

Decimals Functions
We can determine the decimals numbers count after the point in float/double numbers using the decimals function.

Syntax:

Example:

Output: