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

abs(PythonObject) -- absolute value of a python object

Synopsis

Description

This is equivalent to the Python abs function.

i1 : abs toPython(-12)

o1 = 12

o1 : PythonObject of class int

Ways to use this method: