Gitly
Log in
Register
v
/
vlib
/
math
Raw file
|
9 loc (7 sloc)
|
129 bytes
|
Latest commit hash 1cfc4198f
1
module
math
2
3
fn
JS.Math.abs(x f64) f64
4
5
// Returns the absolute value.
6
[inline]
7
pub
fn
abs(a f64) f64 {
8
return
JS.Math.abs(a)
9
}