Difference between revisions of "AMOSi:Datatypes"
Spellcoder (talk | contribs) (converted to a table) |
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
||
Line 2: | Line 2: | ||
− | + | Type Example Min Max<br /> --------------------------------------------------------------- | |
− | + | ||
− | + | ||
− | + | Integer A=3 -65536 65536<br /> | |
− | + | ||
− | + | ||
− | + | Single Precision A#=3.14159 1E-14 1E+15<br /> | |
+ | |||
+ | |||
+ | Double Precision A#=3.1415926543 1E-307 1E+308<br /> | ||
+ | |||
+ | |||
+ | String A$="AMOS" 0 chars 65536 chars<br /> | ||
Double Precision numbers and Single Precision numbers cannot be mixed in the same program. If you want to use double precision, insert a DOUBLE PRECISION command at the START of your listing. | Double Precision numbers and Single Precision numbers cannot be mixed in the same program. If you want to use double precision, insert a DOUBLE PRECISION command at the START of your listing. |
Revision as of 02:45, 17 November 2007
AMOS allows you to use several types of variables in your programs.
Type Example Min Max
---------------------------------------------------------------
Integer A=3 -65536 65536
Single Precision A#=3.14159 1E-14 1E+15
Double Precision A#=3.1415926543 1E-307 1E+308
String A$="AMOS" 0 chars 65536 chars
Double Precision numbers and Single Precision numbers cannot be mixed in the same program. If you want to use double precision, insert a DOUBLE PRECISION command at the START of your listing.