CheckNaNs returns true if any of the floats are NaN
(fs ...float32)
| 45 | |
| 46 | // CheckNaNs returns true if any of the floats are NaN |
| 47 | func CheckNaNs(fs ...float32) bool { |
| 48 | for _, f := range fs { |
| 49 | if math32.IsNaN(f) { |
| 50 | return true |
| 51 | } |
| 52 | } |
| 53 | return false |
| 54 | } |
| 55 | |
| 56 | ////////////////////////////////////////////////// |
| 57 | // Valuer |