Skip to contents

Element-wise floor (round toward negative infinity). You can also use floor().

Usage

nv_floor(operand)

Arguments

operand

(arrayish)
Operand.

Value

arrayish
Has the same shape and data type as the input.

See also

prim_floor() for the underlying primitive.

Examples

x <- nv_array(c(1.2, 2.7, -1.5))
floor(x)
#> AnvlArray
#>   1
#>   2
#>  -2
#> [ CPUf32{3} ]