{{ message }}
Commit 8d5a40c
committed
py/objfloat: Fix handling of negative float to power of nan.
Prior to this commit, pow(-2, float('nan')) would return (nan+nanj), or
raise an exception on targets that don't support complex numbers. This is
fixed to return simply nan, as CPython does.
Signed-off-by: Damien George <damien@micropython.org>1 parent 709398d commit 8d5a40c
2 files changed
Lines changed: 21 additions & 1 deletion

0 commit comments