Core API Reference: Number Usual

From Color Infection Wiki

Jump to: navigation, search


Contents

Abs

Get the absolute value of a number.

Input Parameters:

Number
the number.

Output Parameters:

Result
the absolute value of the input number.
Max

Get the larger value of two numbers.

Input Parameters:

Number 1
one number.
Number 2
another number.

Output Parameters:

Result
the larger value of the two numbers.
Min

Get the smaller value of two numbers.

Input Parameters:

Number 1
one number.
Number 2
another number.

Output Parameters:

Result
the smaller value of the two numbers.
Clamp

Clamp a number.

Input Parameters:

Number to Clamp
the number to be clamped.
Lower Limit
the lower limit.
Upper Limit
the upper limit.

Output Parameters:

Result
the clamped value.
Sqrt

Get the square root of a number.

Input Parameters:

Number
the number.

Output Parameters:

Result
the square root of the input number. If the input number is less than zero, then the result is NaN (not a value).
Ceil

Get the ceiling of a number. The ceiling of a number is the closest integer that is greater than or equal to the number.

Input Parameters:

Number
the number.

Output Parameters:

Result
the ceiling of the input number.
Floor

Get the floor of a number. The floor is the closest integer that is less than or equal to the number.

Input Parameters:

Number
the number.

Output Parameters:

Result
the floor of the input number.
Round

Get the round value of a number. The round value of a number is the nearest integer of the number.

Input Parameters:

Number
the number.

Output Parameters:

Result
the round of the input number.
Log

Get the natural logarithm of a number.

Input Parameters:

Number
the number.

Output Parameters:

Result
the natural logarithm of the input number.
Exp

eNumber, e is Euler's number.

Input Parameters:

Number
the number.

Output Parameters:

Result
eNumber
Power

NumberPower

Input Parameters:

Number
the number.
Power
the power.

Output Parameters:

Result
NumberPower
Personal tools