This repository has been archived by the owner on Feb 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Basic Types
Nidin Vinayakan edited this page Mar 15, 2017
·
9 revisions
Basic types available in TurboScript
The most basic datatype is the simple true/false value, which JavaScript, TypeScript and TurboScript call a boolean
value.
let isDone: boolean = false;
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;
float32
float64
enum
void