Add MulFloat
This commit is contained in:
parent
25766195d9
commit
4aeabb2967
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@ func Sum(a, b int) int {
|
|||
return a + b
|
||||
}
|
||||
|
||||
// Deprecate: use MulFloat
|
||||
func Mul(a, b int) int {
|
||||
return a * b
|
||||
}
|
||||
|
||||
func MulFloat(a, b float64) float64 {
|
||||
return a * b
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue