Contents

Int

A signed integer value type.

Declaration

@frozen struct Int

Overview

On 32-bit platforms, Int is the same size as Int32, and on 64-bit platforms, Int is the same size as Int64.

Topics

Converting Integers

Converting Floating-Point Values

Converting with No Loss of Precision

Converting Strings

Creating a Random Integer

Performing Calculations

Performing Calculations with Overflow

Performing Double-Width Calculations

Finding the Sign and Magnitude

Accessing Numeric Constants

Working with Byte Order

Working with Binary Representation

Working with Memory Addresses

Encoding and Decoding Values

Describing an Integer

Infrequently Used Functionality

Deprecated

SIMD-Supporting Types

Operators

Type Aliases

Type Properties

Default Implementations

See Also

Standard Library