Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Basic Types

Nidin Vinayakan edited this page Mar 15, 2017 · 9 revisions

Introduction 🚧

Basic types available in TurboScript

Boolean

The most basic datatype is the simple true/false value, which JavaScript, TypeScript and TurboScript call a boolean value.

let isDone: boolean = false;

Integer

A number which is not a fraction; a whole number. TurboScript has 8 integer types

uint8 uint16 uint32 uint64 int8 int16 int32 int64

let unsignedByte: uint8 = 255;
let byte: int8 = 0x2;
let unsignedShort: uint16 = 0xffff;
let short: int16 = 32767;
let unsignedInteger: uint32 = 0b1010;
let integer: int32 = 0o744;
let unsignedLong = uint64 = 0xffffffff;
let long:int64 = 0xffffffff;

Floating point number

float32 float64

Enum

enum

Void

void