Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following code first validates the input float before using it. The value is tested to ensure that it is w neither infinity nor negative infinity nor NaN.

...