REAL Type

Previous  Next

 

DIM var-name AS REAL

 


 

Declares a variable of type real.  This is the same as float in C/C++, i.e. a 32bit floating-point number

 

Example:

 

DIM nisse AS REAL

 

Nisse = 63

' Only use 75% of Nisse

Nisse = Nisse * .75

PRINT "75% Of Nisse = ";Nisse,