As in the title, I would expect it to be nan too. Is this number special?
This is clearly a bug in numpy.ramdom.binomial .
numpy.ramdom.binomial
Is this number special?
I would suggest that this is the result of some calculation involving a raw representation of nan (which is represented as a specific βreservedβ float value). ( More on this )
nan
The developer probably forgot to check the input for nan and included the raw representation of nan in the calculation (C-level).