Skip to content

Commit

Permalink
Merge pull request #395 from moonbitlang/int16
Browse files Browse the repository at this point in the history
add int16, uint16
  • Loading branch information
bobzhang authored Dec 31, 2024
2 parents 78ab002 + 8310b16 commit 9381d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions next/language/fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ MoonBit have integer type and floating point type:

| type | description | example |
| -------- | ------------------------------------------------- | -------------------------- |
| `Int16` | 16-bit signed integer | `(42 : Int16)` |
| `Int` | 32-bit signed integer | `42` |
| `Int64` | 64-bit signed integer | `1000L` |
| `UInt16` | 16-bit unsigned integer | `(14 : UInt16)` |
| `UInt` | 32-bit unsigned integer | `14U` |
| `UInt64` | 64-bit unsigned integer | `14UL` |
| `Double` | 64-bit floating point, defined by IEEE754 | `3.14` |
Expand Down

0 comments on commit 9381d9a

Please sign in to comment.