support of nan/inf for floats