Added slabs

This commit is contained in:
2022-10-12 08:24:00 +08:00
parent 5f66b792c7
commit e4fc6f4d96
6 changed files with 230 additions and 5 deletions

View File

@ -53,3 +53,10 @@ func AbsMind(a, b float64) float64 {
}
return b
}
func AbsInt(x int) int {
if x < 0 {
return -x
}
return x
}