mathlib/math/math.go

15 lines
188 B
Go
Raw Permalink Normal View History

2023-11-27 11:33:20 +00:00
package math
2023-11-27 11:55:38 +00:00
func Sum(a, b float64) float64 {
2023-11-27 11:33:20 +00:00
return a + b
}
2023-11-27 11:42:20 +00:00
// Deprecated: use MulFloat
2023-11-27 11:33:20 +00:00
func Mul(a, b int) int {
return a * b
}
2023-11-27 11:40:31 +00:00
func MulFloat(a, b float64) float64 {
return a * b
}