Made node output inf become FLT_MAX, -inf become FLT_MIN and NAN become zero.