18 lines
222 B
Go
18 lines
222 B
Go
package math
|
|
|
|
func Sum(a, b int) int {
|
|
return a + b
|
|
}
|
|
|
|
// Deprecated: use MulFloat
|
|
func Mul(a, b int) int {
|
|
return a * b
|
|
}
|
|
|
|
func MulFloat(a, b float64) float64 {
|
|
return a * b
|
|
}
|
|
|
|
func Sub(a, b int) int {
|
|
return a - b
|
|
}
|