Skip to content

Commit

Permalink
Merge pull request #31 from 0xAxe/patch-5
Browse files Browse the repository at this point in the history
Update Implicit Conversions.md
  • Loading branch information
x676f64 authored Jun 30, 2023
2 parents fcee70d + b035c85 commit b4df208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/2. Solidity 101/Implicit Conversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b4df208

Please sign in to comment.