mirror of
https://github.com/apple/swift-numerics
synced 2026-11-28 05:14:31 +00:00
Update Sources/IntegerUtilities/ShiftWithRounding.swift
Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
This commit is contained in:
1 parent
ef6dbc6e78
commit
bc9f6e7368
1 file changed
+1
-1
@@ -27,7 +27,7 @@ extension BinaryInteger {
|
||||
/// // is odd.
|
||||
/// 3.shifted(rightBy: 1, rounding: .toOdd)
|
||||
///
|
||||
/// // 7/4 = 1.75, so the result is 1 with probability 1/4, and 2
|
||||
/// // 7/4 = 1.75, so the result is 1 with probability 1/4, or 2
|
||||
/// // with probability 3/4.
|
||||
/// 7.shifted(rightBy: 2, rounding: .stochastically)
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user