Macaulay2 » Documentation
Packages » RInterface » RObject » floor(RObject)
next | previous | forward | backward | up | index | toc

floor(RObject) -- floor of an R object

Description

Round each element of x down to the nearest integer, calling R's floor.

i1 : x = RObject exp 1

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o1 = 2.71828182845905

o1 : RObject of type double
i2 : floor x

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o2 = 2

o2 : RObject of type double

See also

Ways to use this method:


The source of this document is in RInterface/doc/rounding.m2:52:0.