-
Notifications
You must be signed in to change notification settings - Fork 25
feat(tolk): align numbers page with the styleguide and enhance it further #1677
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
base: main
Are you sure you want to change the base?
Conversation
|
/review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No documentation issues detected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No documentation issues detected.
| | Name | Inclusive range | Space taken | Notes | | ||
| | -------------------- | ----------------------- | ---------------------- | --------------------------------------------------------------------- | | ||
| | Unsigned `coins` | $0 to 2^{120}-1$ | Between 4 and 124 bits | They represent nanoToncoin, where $10^9$ nanoToncoin equals 1 Toncoin | | ||
| | Unsigned `varuint16` | Same as `coins` | Same as `coins` | Rarely used | | ||
| | Unsigned `varuint32` | $0 to 2^{248}-1$ | Between 5 and 253 bits | Rarely used | | ||
| | Signed `varint16` | $-2^{119} to 2^{119}-1$ | Same as `coins` | Rarely used | | ||
| | Signed `varint32` | $-2^{247} to 2^{247}-1$ | Between 5 and 253 bits | Rarely used | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Name | Inclusive range | Space taken | Notes |
|----------------------|---------------------------------------|------------------------|-------------------------------------------------------------------------------|
| Unsigned `coins` | 0 to 2<sup>120</sup>-1 | Between 4 and 124 bits | They represent nanoToncoin, where 10<sup>9</sup> nanoToncoin equals 1 Toncoin |
| Unsigned `varuint16` | Same as `coins` | Same as `coins` | Rarely used |
| Unsigned `varuint32` | 0 to 2<sup>248</sup>-1 | Between 5 and 253 bits | Rarely used |
| Signed `varint16` | -2<sup>119</sup> to 2<sup>119</sup>-1 | Same as `coins` | Rarely used |
| Signed `varint32` | -2<sup>247</sup> to 2<sup>247</sup>-1 | Between 5 and 253 bits | Rarely used |
| | Name | Inclusive range | Space taken | Examples | | ||
| | ---------------- | ----------------------- | ---------------------------------------- | ------------------------------ | | ||
| | Signed `intN` | $-2^{N-1} to 2^{N-1}-1$ | `N` bits, where `N` is between 1 and 257 | `int32`, `int257`, `int7` | | ||
| | Unsigned `uintN` | $0 to 2^{N}-1$ | `N` bits, where `N` is between 1 and 256 | `uint16`, `uint256`, `uint119` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Name | Inclusive range | Space taken | Examples |
|------------------|---------------------------------------|------------------------------------------|--------------------------------|
| Signed `intN` | -2<sup>N-1</sup> to 2<sup>N-1</sup>-1 | `N` bits, where `N` is between 1 and 257 | `int32`, `int257`, `int7` |
| Unsigned `uintN` | 0 to 2<sup>N</sup>-1 | `N` bits, where `N` is between 1 and 256 | `uint16`, `uint256`, `uint119` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets put <sup> for consistency
Closes #1594. Also, somewhat enhanced and rearranged the page. Other tasks & pages were not done the same way and were styleguide-following improvements.