Macaulay2 » Documentation
Packages » Python » PythonObject » ceiling(PythonObject)
next | previous | forward | backward | up | index | toc

ceiling(PythonObject) -- ceiling of a python object

Description

This calls Python's built-in math.ceil function, which rounds toward positive infinity.

i1 : ceiling toPython 5.8

o1 = 6

o1 : PythonObject of class int
i2 : ceiling toPython(-5.8)

o2 = -5

o2 : PythonObject of class int

See also

Ways to use this method:


The source of this document is in Python/doc/floating-point.m2:27:0.