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 localized-descriptions, snapshot 4UAxOcclWZD2NPiuAIppcpCjShSw41vxBIT6qrjlNLc) id: rMMq-aGp02AI-AWPJhQ5AJRJQmwVLI8n2gLw1OMJDaw content hash: YProgshVB7HcYcp_4nKJIZ5d5o4nMWVbDcorFxiEnGs