Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note about variable length of Coins #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/routes/(examples)/02-integers/contract.tact
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract Integers with Deployable {
i3: Int as int256 = 17; // range -2^255 to 2^255 - 1 (takes 256 bit = 32 bytes)
i4: Int as uint128; // range 0 to 2^128 - 1 (takes 128 bit = 16 bytes)
i5: Int as int128; // range -2^127 to 2^127 - 1 (takes 128 bit = 16 bytes)
i6: Int as coins; // range 0 to 2^120 - 1 (takes 120 bit = 15 bytes)
i6: Int as coins; // range 0 to 2^120 - 1 (takes between 4 and 120 bit = 15.5 bytes, depending on the value)
i7: Int as uint64 = 0x1c4a; // range 0 to 18,446,744,073,709,551,615 (takes 64 bit = 8 bytes)
i8: Int as int64 = -203; // range -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 (takes 64 bit = 8 bytes)
i9: Int as uint32 = 0; // range 0 to 4,294,967,295 (takes 32 bit = 4 bytes)
Expand Down Expand Up @@ -40,4 +40,4 @@ contract Integers with Deployable {
get fun result(): Int {
return self.i1;
}
}
}