Chapter 9 Declaration Statements
9-9
DEFSNG (Statement)
Function
Declares a single precision real type variable. The range of single precision
real variables is from -3.402823E+38 to 3.402823E+38.
Format
DEFSNG <Variable name>[=<Constant>][,<Variable name>[=<Constant>]...]
Explanation
This statement declares a variable designated by <Variable name> as a single
precision real type variable. By writing a constant after <Variable name>,
initialization can be done simultaneously with the declaration.
Multiple variable names can be declared at a time by separating them with a
comma “,”.
Related Terms
DEFDBL, DEFINT, DEFSTR
Example
DEFSNG lfx, lfy, lfz 'Declares lfx, lfy, and lfz as single precision real type
'variables.
DEFSNG lfx = 1.0 'Declares lfx as a single precision real type variables and
'sets the initial value to 1.0.
Comments to this Manuals