JS Basic Datatypes - Number

Download (.odt) Download (Markdown)

Basic operations

[hook]

Exponentiation

[hook]

Square root

[hook]

Cube root

Round to nearest integer

[hook]

Round down

Round up

Absolute value

[hook]

Get biggest value

[hook]

Get smallest value

[hook]

Number PI

[hook]

Number E

[hook]

Generate a random number

[hook]

Generate a random number between 0 (inclusive) and 1 (exclusive):

Generate a random number between a min (inclusive) and a max (exclusive) number.

Generate a random integer between a min (inclusive) and a max (exclusive) number.

Generate a random integer between a min (inclusive) and a max (inclusive) number.