Skip to content

Commit f4debfc

Browse files
fix: format fpclassify.md to pass Prettier check
1 parent 253bb28 commit f4debfc

File tree

1 file changed

+9
-9
lines changed
  • content/cpp/concepts/math-functions/terms/fpclassify

1 file changed

+9
-9
lines changed

content/cpp/concepts/math-functions/terms/fpclassify/fpclassify.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Title: 'fpclassify()'
3-
Description: 'Classifies a floating-point value into specific categories such as zero, normal, subnormal, infinite, or NaN.'
3+
Description: 'Classifies a floating-point value into categories such as zero, normal, subnormal, infinite, or NaN.'
44
Subjects:
55
- 'Computer Science'
66
- 'Data Science'
@@ -52,27 +52,27 @@ int main() {
5252
double zero = 0.0;
5353
double inf = INFINITY;
5454
double nan = NAN;
55-
55+
5656
cout << "Classification of " << normal << ": ";
5757
if (fpclassify(normal) == FP_NORMAL) {
5858
cout << "Normal" << endl;
5959
}
60-
60+
6161
cout << "Classification of " << zero << ": ";
6262
if (fpclassify(zero) == FP_ZERO) {
6363
cout << "Zero" << endl;
6464
}
65-
65+
6666
cout << "Classification of inf: ";
6767
if (fpclassify(inf) == FP_INFINITE) {
6868
cout << "Infinite" << endl;
6969
}
70-
70+
7171
cout << "Classification of nan: ";
7272
if (fpclassify(nan) == FP_NAN) {
7373
cout << "NaN" << endl;
7474
}
75-
75+
7676
return 0;
7777
}
7878
```
@@ -98,10 +98,10 @@ using namespace std;
9898
9999
int main() {
100100
double values[] = {1.0, 0.0, INFINITY, NAN, -5.5};
101-
101+
102102
for (double val : values) {
103103
cout << "fpclassify(" << val << ") = ";
104-
104+
105105
switch(fpclassify(val)) {
106106
case FP_INFINITE:
107107
cout << "Infinite";
@@ -121,7 +121,7 @@ int main() {
121121
}
122122
cout << endl;
123123
}
124-
124+
125125
return 0;
126126
}
127127
```

0 commit comments

Comments
 (0)