HomeManualTopicsTypesSymbols

std_types::real/std::floor

returns the floor of the real value

Parameter

self: a real value

Result

result: the (real) floor of the input value

Description

The result does not contain any fractional part.

Example

println! floor(3.1414)

Output

3

Example

println! floor(-3.1414)

Output

-4

Topic

Numbers

Implements

std::floor computes the greatest integral number smaller or equal than its argument

See also

std_types::real the prototype object for all non-integral numbers
std_types::integer the prototype object for all integral numbers