from numpy import nextafter,seterr print(nextafter(0.,1.)) #5e-324 seterr(under="raise") print(nextafter(0.,1.)) #FloatingPointError: underflow encountered in nextafter Why is this code truggering the error below ? FloatingPointError: underflow encountered in nextafter. According to my tests, similar code works in C. Continue reading...