refactor: fleet/group AtPlanet
This commit is contained in:
@@ -6,6 +6,10 @@ func Fixed3(num float64) float64 {
|
||||
return fixed(num, 3)
|
||||
}
|
||||
|
||||
func Fixed12(num float64) float64 {
|
||||
return fixed(num, 12)
|
||||
}
|
||||
|
||||
func fixed(num float64, precision int) float64 {
|
||||
output := math.Pow(10, float64(precision))
|
||||
return float64(round(num*output)) / output
|
||||
|
||||
Reference in New Issue
Block a user