mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
9ead8781d4
Co-authored-by: Alex Martini <amartini@apple.com> Co-authored-by: Graham Lee <glee23@apple.com> Co-authored-by: Chris Adamson <cadamson@apple.com> Co-authored-by: Kirby Turner <kirby_turner@apple.com> Co-authored-by: Paris Pinkney <ppinkney@apple.com> Co-authored-by: Dave Spector <dspector@apple.com> Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com> Co-authored-by: Ethan Kusters <ekusters@apple.com> Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com> Co-authored-by: Adora Vaz <a_vaz@apple.com> Co-authored-by: David Rönnqvist <ronnqvist@apple.com> Co-authored-by: Nate Merseth Cook <natecook@apple.com> Co-authored-by: Susan Conant <susan_c@apple.com>
43 lines
974 B
Markdown
43 lines
974 B
Markdown
# ``Swift/BinaryInteger``
|
|
|
|
## Topics
|
|
|
|
### Creating a Binary Integer
|
|
|
|
- ``Swift/BinaryInteger/init()``
|
|
|
|
### Converting Integers
|
|
|
|
- ``Swift/BinaryInteger/init(_:)-8gmdl``
|
|
- ``Swift/BinaryInteger/init(clamping:)``
|
|
- ``Swift/BinaryInteger/init(truncatingIfNeeded:)``
|
|
|
|
### Converting Floating-Point Values
|
|
|
|
- ``Swift/BinaryInteger/init(_:)-2ln0u``
|
|
|
|
### Converting with No Loss of Precision
|
|
|
|
- ``Swift/BinaryInteger/init(exactly:)``
|
|
|
|
### Performing Calculations
|
|
|
|
- <doc:binary-integer-operators>
|
|
- ``Swift/BinaryInteger/quotientAndRemainder(dividingBy:)-2n3uu``
|
|
- ``Swift/BinaryInteger/isMultiple(of:)-4vcaa``
|
|
|
|
### Finding the Sign and Magnitude
|
|
|
|
- ``Swift/BinaryInteger/signum()-7hog6``
|
|
|
|
### Accessing Numeric Constants
|
|
|
|
- ``Swift/BinaryInteger/isSigned``
|
|
|
|
### Working with Binary Representation
|
|
|
|
- ``Swift/BinaryInteger/bitWidth``
|
|
- ``Swift/BinaryInteger/trailingZeroBitCount``
|
|
- ``Swift/BinaryInteger/words-swift.property``
|
|
- ``Swift/BinaryInteger/Words-swift.associatedtype``
|