next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Python :: abs(PythonObject)

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: