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 quote-encoded-parts, snapshot LbKb9vIRs5vdtsu6TiOqZ_NMUZJ6k1s6WlbZOc6x3-I) id: rMMq-aGp02AI-AWPJhQ5AJRJQmwVLI8n2gLw1OMJDaw content hash: YProgshVB7HcYcp_4nKJIZ5d5o4nMWVbDcorFxiEnGs