v / vlib / math / abs.js.v
9 lines · 7 sloc · 130 bytes · 757929392e0e7a75fc1272116460981e589737d5
Raw
1module math
2
3fn JS.Math.abs(x f64) f64
4
5// Returns the absolute value.
6@[inline]
7pub fn abs(a f64) f64 {
8 return JS.Math.abs(a)
9}
10