Skip to content

Commit 33deaba

Browse files
authored
Merge pull request #60788 from amartini51/significand_exponent_56184186
Make pseudocode look less like real code.
2 parents 3c77075 + 4d53ce4 commit 33deaba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/FloatingPoint.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
/// following form for a floating-point value `x` of type `F`, where `**` is
4646
/// exponentiation:
4747
///
48-
/// x.significand * F.radix ** x.exponent
48+
/// x.significand * (F.radix ** x.exponent)
4949
///
5050
/// Here's an example of the number -8.5 represented as an instance of the
5151
/// `Double` type, which defines a radix of 2.
@@ -432,7 +432,7 @@ public protocol FloatingPoint: SignedNumeric, Strideable, Hashable
432432
/// type `F`, the magnitude can be calculated as the following, where `**`
433433
/// is exponentiation:
434434
///
435-
/// let magnitude = x.significand * F.radix ** x.exponent
435+
/// x.significand * (F.radix ** x.exponent)
436436
///
437437
/// In the next example, `y` has a value of `21.5`, which is encoded as
438438
/// `1.34375 * 2 ** 4`. The significand of `y` is therefore 1.34375.
@@ -458,7 +458,7 @@ public protocol FloatingPoint: SignedNumeric, Strideable, Hashable
458458
/// The magnitude of a floating-point value `x` of type `F` can be calculated
459459
/// by using the following formula, where `**` is exponentiation:
460460
///
461-
/// let magnitude = x.significand * F.radix ** x.exponent
461+
/// x.significand * (F.radix ** x.exponent)
462462
///
463463
/// In the next example, `y` has a value of `21.5`, which is encoded as
464464
/// `1.34375 * 2 ** 4`. The significand of `y` is therefore 1.34375.

0 commit comments

Comments
 (0)