9 lines
89 B
Go
9 lines
89 B
Go
package utilities
|
|
|
|
func AbsInt64(x int64) int64 {
|
|
if x < 0 {
|
|
return -x
|
|
}
|
|
return x
|
|
}
|