std.abs
- description
- Return absolute value of a number
- type
Fn(x: Number) -> Number
- expression
fn(x$1) => match @core.less-than(left: $1, right: 0) { true => @core.minus(left: 0, right: $1), false => $1 }
- visibility
- public
std.abs (project definy, branch local-host-wasi-io, snapshot 6q6wel2IrvXMEdXtZFbi0BgBld-vO0GChR39-U-GIJY) id: rMMq-aGp02AI-AWPJhQ5AJRJQmwVLI8n2gLw1OMJDaw content hash: YProgshVB7HcYcp_4nKJIZ5d5o4nMWVbDcorFxiEnGs