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
The value of type **`double`** for the real part of the complex number being constructed.
34
33
35
-
*ImagVal*\
34
+
*`ImagVal`*\
36
35
The value of type **`double`** for the imaginary part of the complex number being constructed.
37
36
38
-
*complexNum*\
37
+
*`complexNum`*\
39
38
The complex number of type **`float`** or of type **`long double`** whose real and imaginary parts are used to initialize a complex number of type **`double`** being constructed.
40
39
41
40
## Return Value
@@ -46,7 +45,7 @@ A complex number of type **`double`**.
46
45
47
46
The explicit specialization of the class template complex to a complex class of type **`double`** differs from the class template only in the constructors it defines. The conversion from **`float`** to **`double`** is allowed to be implicit, but the conversion from **`long double`** to **`double`** is required to be **`explicit`**. The use of **`explicit`** rules out the initiation with type conversion using assignment syntax.
48
47
49
-
For more information on the class template `complex`, see [complex Class](../standard-library/complex-class.md). For a list of members of the class template `complex`, see .
48
+
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).
50
49
51
50
## Example
52
51
@@ -105,11 +104,11 @@ arg ( c3 ) = 0.896055 radians, which is 51.3402 degrees.
Copy file name to clipboardExpand all lines: docs/standard-library/complex-float.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
---
2
-
description: "Learn more about: complex<float>"
3
2
title: "complex<float>"
4
-
ms.date: "11/04/2016"
3
+
description: "Learn more about: complex<float>"
4
+
ms.date: 11/04/2016
5
5
f1_keywords: ["complex/std::complex<float>"]
6
6
helpviewer_keywords: ["complex<float> function"]
7
-
ms.assetid: 1178eb1e-39bd-4017-89cd-aea95f813939
8
7
---
9
8
# `complex<float>`
10
9
@@ -34,13 +33,13 @@ constexpr complex(
34
33
35
34
### Parameters
36
35
37
-
*_RealVal*\
36
+
*`_RealVal`*\
38
37
The value of type **`float`** for the real part of the complex number being constructed.
39
38
40
-
*_ImagVal*\
39
+
*`_ImagVal`*\
41
40
The value of type **`float`** for the imaginary part of the complex number being constructed.
42
41
43
-
*complexNum*\
42
+
*`complexNum`*\
44
43
The complex number of type **`double`** or of type **`long double`** whose real and imaginary parts are used to initialize a complex number of type **`float`** being constructed.
45
44
46
45
## Return Value
@@ -51,7 +50,7 @@ A complex number of type **`float`**.
51
50
52
51
The explicit specialization of the class template complex to a complex class of type **`float`** differs from the class template only in the constructors it defines. The conversion from **`float`** to **`double`** is allowed to be implicit, but the less safe conversion from **`float`** to **`long double`** is required to be **`explicit`**. The use of **`explicit`** rules out the initiation with type conversion using assignment syntax.
53
52
54
-
For more information on the class template `complex`, see [complex Class](../standard-library/complex-class.md). For a list of members of the class template `complex`, see .
53
+
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).
55
54
56
55
## Example
57
56
@@ -111,11 +110,11 @@ arg ( c3 ) = 0.927295 radians, which is 53.1301 degrees.
The value of type **`long double`** for the real part of the complex number being constructed.
34
33
35
-
*_ImagVal*\
34
+
*`_ImagVal`*\
36
35
The value of type **`long double`** for the imaginary part of the complex number being constructed.
37
36
38
-
*complexNum*\
37
+
*`complexNum`*\
39
38
The complex number of type **`double`** or of type **`float`** whose real and imaginary parts are used to initialize a complex number of type **`long double`** being constructed.
40
39
41
40
## Return Value
@@ -46,7 +45,7 @@ A complex number of type **`long double`**.
46
45
47
46
The explicit specialization of the class template `complex` to a complex class of type **`long double`** differs from the class template only in the constructors it defines. The conversion from **`long double`** to **`float`** is allowed to be implicit, but the conversion from **`double`** to **`long double`** is required to be **`explicit`**. The use of **`explicit`** rules out the initiation with type conversion using assignment syntax.
48
47
49
-
For more information on the class template `complex` and its members, see [complex Class](../standard-library/complex-class.md).
48
+
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).
50
49
51
50
**Microsoft-specific**: The **`long double`** and **`double`** types have the same representation, but are distinct types. For more information, see [Built-in types](../cpp/fundamental-types-cpp.md).
52
51
@@ -108,11 +107,11 @@ arg( c3 ) = 0.927295 radians, which is 53.1301 degrees.
0 commit comments