HomeManualTopicsTypesSymbols

std_types::real/std::ceil

returns the ceiling of the real value

Parameter

self: a real value

Result

result: the (real) ceiling of the input value

Description

The result does not contain any fractional part.

Example

println! ceil(3.1414)

Output

4

Example

println! ceil(-3.1414)

Output

-3

Topic

Numbers

Implements

std::ceil computes the smallest integral number greater 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