Difference between revisions of "AMOSi:Datatypes"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
(converted to a table)
 
Line 2: Line 2:
  
  
Type         Example     Min   Max<br /> ---------------------------------------------------------------
+
<table>
 
+
<tr><th>Type</th><th>Example</th><th>Min</th><th>Max</th>
 
+
<tr><td>Integer</td><td>A=3</td><td>-65536</td><td>65536</td></tr>
Integer       A=3       -65536 65536<br />
+
<tr><td>Single Precision</td><td>A#=3.14159</td><td>1E-14</td><td>1E+15</td></tr>
 
+
<tr><td>Double Precision</td><td>A#=3.1415926543</td><td>1E-307</td><td>1E+308</td></tr>
 
+
<tr><td>String</td><td>A$="AMOS"</td><td>0 chars</td><td>65536 chars</td></tr>
Single Precision   A#=3.14159   1E-14 1E+15<br />
+
</table>
 
 
 
 
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.

Latest revision as of 02:09, 17 November 2007

AMOS allows you to use several types of variables in your programs.


TypeExampleMinMax
IntegerA=3-6553665536
Single PrecisionA#=3.141591E-141E+15
Double PrecisionA#=3.14159265431E-3071E+308
StringA$="AMOS"0 chars65536 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.