Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ The following table shows the predefined implicit conversions between the built-

| From | To |
|------------------------------------------|--------|
| [sbyte](integral-numeric-types.md) | `short`, `int`, `long`, `float`, `double`, `decimal`, or `nint` |
| [byte](integral-numeric-types.md) | `short`, `ushort`, `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` |
| [short](integral-numeric-types.md) | `int`, `long`, `float`, `double`, `decimal`, or `nint` |
| [ushort](integral-numeric-types.md) | `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` |
| [int](integral-numeric-types.md) | `long`, `float`, `double`, `decimal`, or `nint` |
| [uint](integral-numeric-types.md) | `long`, `ulong`, `float`, `double`, `decimal`, or `nuint` |
| [long](integral-numeric-types.md) | `float`, `double`, or `decimal` |
| [ulong](integral-numeric-types.md) | `float`, `double`, or `decimal` |
| [float](floating-point-numeric-types.md) | `double` |
| [nint](integral-numeric-types.md) | `long`, `float`, `double`, or `decimal` |
| [nuint](integral-numeric-types.md) | `ulong`, `float`, `double`, or `decimal` |
| [`sbyte`](integral-numeric-types.md) | `short`, `int`, `long`, `float`, `double`, `decimal`, or `nint` |
Comment thread
BillWagner marked this conversation as resolved.
| [`byte`](integral-numeric-types.md) | `short`, `ushort`, `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` |
| [`short`](integral-numeric-types.md) | `int`, `long`, `float`, `double`, `decimal`, or `nint` |
| [`ushort`](integral-numeric-types.md) | `int`, `uint`, `long`, `ulong`, `float`, `double`, `decimal`, `nint`, or `nuint` |
| [`int`](integral-numeric-types.md) | `long`, `float`, `double`, `decimal`, or `nint` |
| [`uint`](integral-numeric-types.md) | `long`, `ulong`, `float`, `double`, `decimal`, or `nuint` |
| [`long`](integral-numeric-types.md) | `float`, `double`, or `decimal` |
| [`ulong`](integral-numeric-types.md) | `float`, `double`, or `decimal` |
| [`float`](floating-point-numeric-types.md) | `double` |
| [`nint`](integral-numeric-types.md) | `long`, `float`, `double`, or `decimal` |
| [`nuint`](integral-numeric-types.md) | `ulong`, `float`, `double`, or `decimal` |

> [!NOTE]
> The implicit conversions from `int`, `uint`, `long`, `ulong`, `nint`, or `nuint` to `float` and from `long`, `ulong`, `nint`, or `nuint` to `double` can cause a loss of precision, but never a loss of an order of magnitude. The other implicit numeric conversions never lose any information.
Expand Down
Loading