Built-in Types

On this page, we will cover all of the built-in types and their sizes, along with other data about these special types

In Radon, there are a number of built-in or "special" types, each with its own use.

Below is a table containing the name, size, and the range of the type

Name
Size
Range

void

0

This is a very special type, used when returning nothing from a method. Variables cannot be of this type

bool

1

This type can represent two values: true and false

sbyte

1

This type can represent values from -128 to 127

byte

1

This type can represent values from 0 to 255

short

2

This type can represent values from -32,768 to 32,767

ushort

2

This type can represent values from 0 to 65,535

int

4

This type can represent values from -2,147,483,648 to 2,147,483,647

uint

4

This type can represent values from 0 to 4,294,967,295

long

8

This type can represent values from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,8071

ulong

8

This type can represent values from 0 to 18,446,744,073,709,551,615

Next, we have types that can represent floating point number such as 1.1 or 3.14159

Below is a table containing the name, size, approximate range, and precision of the type.

Name
Size
Approximate Range
Precision

float

4

±1.5 x 10−45 to ±3.4 x 1038

~6-9 digits

double

8

±5.0 × 10−324 to ±1.7 × 10308

~15-17 digits

Last updated