1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/utils.go

22 lines
225 B
Go
Raw Normal View History

2018-09-11 13:23:28 +02:00
package main
import "math"
2018-09-11 13:23:28 +02:00
func maxInt(a, b int) int {
if a > b {
return a
}
return b
}
func minInt(a, b int) int {
if a < b {
return a
}
return b
}
func roundToInt(a float64) int {
return int(math.Round(a))
}