Skip to main content

abs

Function abs 

Source
pub fn abs(x: impl IntoExpr<PrimExpr>) -> Result<PrimExpr>
Expand description

Build the absolute value of x; a constant folds.

ยงErrors

Returns an InternalError if x is not an integer or a float, such as a boolean.