Cast
- ✓* Indicates reintepreted casts
Into Signed Integers
| ⟍ Into ⟍ From⟍ | Int8 | Int16 | Int32 |
|---|---|---|---|
| Int8 | ✓ | ✓ | |
| Int16 | ✓ | ||
| Int32 | |||
| UInt8 | ✓* | ✓ | ✓ |
| UInt16 | ✓* | ✓ | |
| UInt32 | |||
| Float32 | |||
| Date32 |
Into Unsigned Integers
| ⟍ Into ⟍ From⟍ | UInt8 | UInt16 | UInt32 |
|---|---|---|---|
| Int8 | ✓* | ✓* | ✓* |
| Int16 | ✓* | ✓* | |
| Int32 | |||
| UInt8 | ✓ | ✓ | |
| UInt16 | ✓ | ||
| UInt32 | |||
| Float32 | ✓ | ||
| Date32 |
caveats
- Float32 -> UInt8
- underflow ->
0 - overflow ->
% 256
- underflow ->
Into Floats
| ⟍ Into ⟍ From⟍ | Float32 |
|---|---|
| Int8 | ✓ |
| Int16 | ✓ |
| Int32 | |
| UInt8 | ✓ |
| UInt16 | ✓ |
| UInt32 | |
| Float32 | |
| Date32 |
Into Boolean
| ⟍ Into ⟍ From⟍ | boolean |
|---|---|
| Int8 | |
| Int16 | |
| Int32 | |
| UInt8 | |
| UInt16 | |
| UInt32 | |
| Float32 | ✓ |
| Date32 |