mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Another tweak to fix sprite generation
This commit is contained in:
8
pkg/utils/float.go
Normal file
8
pkg/utils/float.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package utils
|
||||
|
||||
import "math"
|
||||
|
||||
// IsValidFloat64 ensures the given value is a valid number (not NaN) which is not equal to 0
|
||||
func IsValidFloat64(value float64) bool {
|
||||
return !math.IsNaN(value) && value != 0
|
||||
}
|
||||
Reference in New Issue
Block a user