added Abs

This commit is contained in:
milarin 2023-04-24 14:53:55 +02:00
parent 82073f40ae
commit de82000934

View File

@ -5,3 +5,7 @@ import "math"
func Pow[N Number](x, y N) N { func Pow[N Number](x, y N) N {
return N(math.Pow(float64(x), float64(y))) return N(math.Pow(float64(x), float64(y)))
} }
func Abs[N Number](v N) N {
return N(math.Abs(float64(v)))
}