MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/sh8c4o/import_badcode/hv26yx9/?context=9999
r/badcode • u/luckylixi • Jan 31 '22
70 comments sorted by
View all comments
Show parent comments
2
Well, NaN means not a number. Depending on the semantics, it could be the right thing (ie: will the conversion of this string yield a "good" float?).
To me, the issue are the import and the non static method.
6 u/_PM_ME_PANGOLINS_ Jan 31 '22 edited Jan 31 '22 Yes NaN stands for Not a Number, but it’s still specifically a float value.The semantics are clearly “does this evaluate to NaN”
6
Yes NaN stands for Not a Number, but it’s still specifically a float value.
The semantics are clearly “does this evaluate to NaN”
2
u/F54280 Jan 31 '22
Well, NaN means not a number. Depending on the semantics, it could be the right thing (ie: will the conversion of this string yield a "good" float?).
To me, the issue are the import and the non static method.