Skip to content

Commit 298052c

Browse files
author
Colin Robertson
committed
Additional Acrolinx supplications
1 parent 4f9e16e commit 298052c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎docs/c-runtime-library/reference/finite-finitef.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The floating-point value to test.
4040

4141
## Return Value
4242

43-
**isfinite**, **_finite**, and **_finitef** return a non-zero value if the argument *x* is finite, that is, if -INF < *x* < +INF. They return 0 or **false** if the argument is infinite or a NAN. Both normal and subnormal floating-point values are considered finite.
43+
**isfinite**, **_finite**, and **_finitef** return a non-zero value if the argument *x* is finite. They return 0 or **false** if the argument is infinite or a NAN. Both normal and subnormal values are considered finite.
4444

4545
## Remarks
4646

‎docs/c-runtime-library/reference/isnan-isnan-isnanf.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ The floating-point value to test.
4040

4141
## Return Value
4242

43-
In C, the **isnan** macro and the **_isnan** and **_isnanf** functions return a nonzero value if the argument *x* is a NAN; otherwise they return 0.
43+
In C, the **isnan** macro and the **_isnan** and **_isnanf** functions return a non-zero value if the argument *x* is a NAN; otherwise they return 0.
4444

45-
In C++, the **isnan** template functions return **true** if the argument *x* is a NAN; otherwise they return **false**.
45+
In C++, the **isnan** template function returns **true** if the argument *x* is a NaN; otherwise it returns **false**.
4646

4747
## Remarks
4848

49-
The C **isnan** macro and the **_isnan** and **_isnanf** functions test floating-point value *x*, returning a nonzero value if *x* is a Not a Number (NAN) value. A NAN is generated when the result of a floating-point operation can't be represented in IEEE-754 floating-point format for the specified type. For information about how a NAN is represented for output, see [printf](printf-printf-l-wprintf-wprintf-l.md).
49+
Because a NaN value does not compare as equal to any other NaN value, you must use one of these functions or macros to detect one. A NaN is generated when the result of a floating-point operation can't be represented in IEEE-754 floating-point format for the specified type. For information about how a NaN is represented for output, see [printf](printf-printf-l-wprintf-wprintf-l.md).
5050

51-
When compiled as C++, the **isnan** macro is not defined, and an **isnan** template function is defined instead. It returns a value of type **bool** instead of an integer.
51+
When compiled as C++, the **isnan** macro is not defined, and an **isnan** template function is defined instead. It behaves the same way as the macro, but returns a value of type **bool** instead of an integer.
5252

53-
The **_isnan** and **_isnanf** functions are Microsoft specific. The **_isnanf** function is only available when compiled for x64.
53+
The **_isnan** and **_isnanf** functions are Microsoft-specific. The **_isnanf** function is only available when compiled for x64.
5454

5555
## Requirements
5656

0 commit comments

Comments
 (0)