blob: 7117db0b718ae15a2d36f23c792c9767b371a322 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package math
export func Fabs(arg float64) float64 {
if arg < 0 {
return -arg;
}
return arg;
}
|