Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Numeric variables

 

The following numeric data types are supported:

Group

Data type

Bits

Bytes

Range from

Range to

Digits of precision

Integer data types

BYTE

8

1

0

255

n/a


INTEGER

16

2

-32768

32767

n/a


WORD

16

2

0

65535

n/a


DWORD

32

4

0

4294967295

n/a


LONG

32

4

-2147483648

2147483647

n/a


QUAD

64

8

-9.22*(10^18)

+9.22*(10^18)

n/a



 

 

 

 

 

Floating point data types

SINGLE

32

4

8.43*(10^-37)

3.40*(10^38)

6


DOUBLE

64

8

-4.19*(10^-307)

1.79*(10^308)

16


EXTENDED (EXT)

80

10

3.4*(10^-4932)

1.2*(10^4932)

18


CURRENCY

64

8

-9.22*(10^14)

+9.22*(10^14)

4

 

Restrictions

 

1.thinBasic perform all internal numeric calculations using EXTENDED (abbreviated EXT) data type.

2.due to lack of precision (only 6 digits), we suggest to use SINGLE data type only when interfacing to external libraries that explicitly ask for SINGLE parameters passed by reference.

3.Numeric data type is an alias of EXT (Extended)

 

 

Numeric alias

 

In order to improve possibility to convert source code from/to other programming languages, thinBasic supports alias for floating point and integer numeric data types:

Alias

Equivalent to thinBasic data type

Int16

INTEGER

UInt16

WORD

UInt32

DWORD

Int32

LONG

Int64

QUAD

LongLong

QUAD

Large_Integer

QUAD

 


Float32

SINGLE

Float64

DOUBLE

Float80

EXTENDED (EXT)

DWordLong

QUAD

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software