You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cpp/concepts/math-functions/terms/isgreaterequal/isgreaterequal.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,33 @@
1
1
---
2
2
Title: 'isgreaterequal()'
3
-
Description: 'Determines if the floating-point number `x` is greater than or equal to the floating-point number `y`, without setting floating-point exceptions.'
3
+
Description: 'Determines whether the first floating-point value is greater than or equal to the second, without raising floating-point exceptions.'
4
4
Subjects:
5
-
5
+
- 'Computer Science'
6
+
- 'Game Development'
6
7
Tags:
7
8
- 'Functions'
8
-
- 'Comparison'
9
9
- 'Math'
10
10
CatalogContent:
11
11
- 'learn-c-plus-plus'
12
+
- 'paths/computer-science'
12
13
---
13
14
14
-
The **`isgreaterequal()`**[function](https://www.codecademy.com/resources/docs/cpp/functions) compares two floating-point values and returns `true` only when the first is greater than or equal to the second. Never raises floating-point exceptions, and always returns `false` if one or both arguments is `NaN`. The function is available through the `<cmath>` header.
15
+
The **`isgreaterequal()`**[function](https://www.codecademy.com/resources/docs/cpp/functions) compares two arithmetic values and returns `true` only when the first is greater than or equal to the second. It never raises floating-point exceptions and always returns `false` if either argument is `NaN`. The function is available through the `<cmath>` header.
15
16
16
17
## Syntax
17
18
18
-
```
19
+
```pseudo
19
20
isgreaterequal(x, y)
20
21
```
21
22
22
23
**Parameters:**
23
24
24
-
-`x`, `y`: floating-point or integers types.
25
-
25
+
-`x`, `y`: Floating-point or integers types.
26
26
27
-
> **Notes:**
28
-
> + The function `isgreaterequal()`is defined with overloads so it works with any mix of arithmetic values.
29
-
> + The built-in operator>= for floating-point numbers may raise `FE_INVALID` if one or both of the arguments is NaN. The function `isgreaterequal()` is a "quiet" version of operator>=.
27
+
> **Notes:**
28
+
>
29
+
> - The function `isgreaterequal()` is defined with overloads so it works with any mix of arithmetic values.
30
+
> - The built-in operator `>=` for floating-point numbers may raise `FE_INVALID` if one or both of the arguments is `NaN`. The function `isgreaterequal()` is a "quiet" version of operator `>=`.
30
31
31
32
**Return value:**
32
33
@@ -64,7 +65,7 @@ The output of this code is as follows:
0 commit comments