mirror of
https://github.com/apple/swift-numerics
synced 2026-11-29 05:24:24 +00:00
Update README.md
This commit is contained in:
1 parent
f7075cc79a
commit
8680be387b
1 file changed
+3
-2
@@ -65,9 +65,10 @@ which performs a bitwise shift with rounding and saturation.
|
||||
|
||||
If you are using saturating arithmetic, you may also want to perform
|
||||
saturating conversions between integer types; this functionality is provided
|
||||
by the standard library via the [`init(clamping:)` API]
|
||||
(https://developer.apple.com/documentation/swift/binaryinteger/init(clamping:))
|
||||
by the standard library via the [`init(clamping:)` API][clamping]
|
||||
|
||||
## Types
|
||||
|
||||
The `RoundingRule` enum is used with shift, division, and round operations to specify how to round their results to a representable value.
|
||||
|
||||
[clamping]: https://developer.apple.com/documentation/swift/binaryinteger/init(clamping:)
|
||||
Reference in new issue
Block a user