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

floor(PythonObject) -- floor of a python object

Synopsis

Description

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

i1 : floor toPython 5.8

o1 = 5

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

o2 = -6

o2 : PythonObject of class int

Ways to use this method: