diff --git a/content/2. Solidity 101/Implicit Conversions.md b/content/2. Solidity 101/Implicit Conversions.md index 8556db22..0adea9e4 100644 --- a/content/2. Solidity 101/Implicit Conversions.md +++ b/content/2. Solidity 101/Implicit Conversions.md @@ -3,7 +3,7 @@ An implicit type conversion is automatically applied by the compiler in some cas 1. implicit conversion between value-types is possible if it makes sense semantically and no information is lost -2. For example, `uint8` is convertible to uint16 and `int128` to `int256`, but `int8` is not convertible to `uint256`, because `uint256` cannot hold values such as `-1` +2. For example, `uint8` is convertible to `uint16` and `int128` to `int256`, but `int8` is not convertible to `uint256`, because `uint256` cannot hold values such as `-1` ___ ## Slide Screenshot ![068.jpg](../../images/2.%20Solidity%20101/068.jpg) @@ -14,7 +14,7 @@ ___ - Assignments/Arguments/Operators - Semantic Sense - No Information Lost -- E.g.: `uint8` -> `uint16`, `int128` -> `inte256`, `int128 X` -> `uint256`, `uint256 X` -> `uint128` +- E.g.: `uint8` -> `uint16`, `int128` -> `int256`, `int128 X` -> `uint256`, `uint256 X` -> `uint128` ___ ## References - [Youtube Reference](https://youtu.be/WgU7KKKomMk?t=653)