Silicon
  • Home
  • Documents
    • Data Types
    • Variables
    • Functions
    • Comments
    • Control Flow
    • Operators
    • Interfaces
    • Classes
    • Modules
  • Source Code
Powered by GitBook
On this page
  • The Boolean Type
  • Integer Types
  • Floating-Point Types

Was this helpful?

  1. Documents

Data Types

The Boolean Type

As in most other programming languages, a Boolean type in Silicon has two possible values: true and false. Booleans are one bit in size. The Boolean type in Silicon is specified using bool.

Integer Types

Length

Signed

8-bit

i8

16-bit

i16

32-bit

i32

64-bit

i64

128-bit

i128

Floating-Point Types

Length

Type

16-bit

f16

32-bit

f32

64-bit

f64

PreviousHomeNextVariables

Last updated 4 years ago

Was this helpful?