Some median Python NaNsense
Some median Python NaNsense
Posted Jan 7, 2020 18:39 UTC (Tue) by NYKevin (subscriber, #129325)In reply to: Some median Python NaNsense by khim
Parent article: Some median Python NaNsense
That's too late. The architecture has already normalized them by the time you call median().
Basically, the problem is not in median() at all. The problem is that the architecture changed the numbers out from under you, so you are passing a different list of numbers under ARM than under x86. "Most people" won't notice that, because it's "just" replacing one NaN-valued bit pattern with another, and "most people" don't care about which NaN is which. But if you're casting to int, then you'll certainly notice differing bit patterns.
