3 ms·Throw a standard exception. E.g. python calls it a ValueError. Returing NaN is clearly wrong design.by darthrupert 6y agoThrow a standard exception. E.g. python calls it a ValueError. Returing NaN is clearly wrong design.