mirror of
https://github.com/stashapp/stash-box.git
synced 2026-02-15 18:07:29 -06:00
* Initial performer prototype * Drop file: from migration url to fix panic * Remove vendor requirement
9 lines
209 B
Go
9 lines
209 B
Go
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
|
|
}
|