Skip to contents

If using Julia, units are preserved

Usage

nonnegative(x)

Arguments

x

Value

Value

x if x is greater than 0, 0 otherwise

See also

Other internal: compare_sim(), has_internet(), not_on_cran(), saveat_func()

Examples

nonnegative(NA)
#> [1] NA
nonnegative(-1)
#> [1] 0