NaN
NaN
은 Not a Number라는 뜻. 숫자가 아니라는 뜻이다. Float
의 타입 프로퍼티이다.false
를 반환한다는 것이라고 볼 수 있겠다.isNaN
을 가지고 true
값을 얻어낼 수 있다.Double
값을 찾고자 한다면, 이를 통해 처리할 수 있겠다.https://developer.apple.com/documentation/swift/floatingpoint/1641652-nan
https://developer.apple.com/documentation/swift/floatingpoint/1641763-isnan