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

ceiling(PythonObject) -- ceiling of a python object

Synopsis

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

Ways to use this method: