Return to homepage

DOSATO

Copyright © 2024 Sebastiaan Heins

3.0 Standard library

Dosato by default has a selection of build in functions and variables, to help you build efficient code.

In this chapter, we will list and explore all the functions and variables Dosato has to offer!

Note:
Each and every function/constant also has a lowercase version, for example MAXLONG can also be written as maxlong.

General Constants

long: MAXLONG

MAXLONG is a constant defined in the standard library, it is the maximum value of a long.
It's value internally is 9223372036854775807

long: MINLONG

MINLONG is a constant defined in the standard library, it is the minimum value of a long.
It's value internally is -9223372036854775808

long: MAXINT

MAXINT is a constant defined in the standard library, it is the maximum value of an int.
It's value internally is 2147483647

long: MININT

MININT is a constant defined in the standard library, it is the minimum value of an int.
It's value internally is -2147483648

long: MAXSHORT

MAXSHORT is a constant defined in the standard library, it is the maximum value of a short.
It's value internally is 32767

long: MINSHORT

MINSHORT is a constant defined in the standard library, it is the minimum value of a short.
It's value internally is -32768

long: MAXBYTE

MAXBYTE is a constant defined in the standard library, it is the maximum value of a byte.
It's value internally is 127

long: MINBYTE

MINBYTE is a constant defined in the standard library, it is the minimum value of a byte.
It's value internally is -128

General Functions

string TYPEOF (var value)

Returns the type of the given value as a string.

bool ISNULL (var value)

Returns true if the given value is null, false otherwise.

long TYPEOFINT (var value)

Returns the type of the given value as a long.

void THROW (long error_code|string error_msg)

Throws an error with the given error code or message.