45
45
/// following form for a floating-point value `x` of type `F`, where `**` is
46
46
/// exponentiation:
47
47
///
48
- /// x.significand * F.radix ** x.exponent
48
+ /// x.significand * ( F.radix ** x.exponent)
49
49
///
50
50
/// Here's an example of the number -8.5 represented as an instance of the
51
51
/// `Double` type, which defines a radix of 2.
@@ -432,7 +432,7 @@ public protocol FloatingPoint: SignedNumeric, Strideable, Hashable
432
432
/// type `F`, the magnitude can be calculated as the following, where `**`
433
433
/// is exponentiation:
434
434
///
435
- /// let magnitude = x.significand * F.radix ** x.exponent
435
+ /// x.significand * ( F.radix ** x.exponent)
436
436
///
437
437
/// In the next example, `y` has a value of `21.5`, which is encoded as
438
438
/// `1.34375 * 2 ** 4`. The significand of `y` is therefore 1.34375.
@@ -458,7 +458,7 @@ public protocol FloatingPoint: SignedNumeric, Strideable, Hashable
458
458
/// The magnitude of a floating-point value `x` of type `F` can be calculated
459
459
/// by using the following formula, where `**` is exponentiation:
460
460
///
461
- /// let magnitude = x.significand * F.radix ** x.exponent
461
+ /// x.significand * ( F.radix ** x.exponent)
462
462
///
463
463
/// In the next example, `y` has a value of `21.5`, which is encoded as
464
464
/// `1.34375 * 2 ** 4`. The significand of `y` is therefore 1.34375.
0 commit comments