APL Wiki logo: Difference between revisions
Jump to navigation
Jump to search
→A number is a number
Miraheze>Adám Brudzewsky |
Miraheze>Adám Brudzewsky |
||
Line 84: | Line 84: | ||
</source> | </source> | ||
Notice how we were dealing with integers until now, but then we multiply by a float (non-integer). In APL, you don't need to worry about numeric data type conversions. All numeric types get automatically promoted and demoted as needed. APL will usually use the most compact internal representation. | Notice how we were dealing with integers until now, but then we multiply by a float (non-integer). In APL, you don't need to worry about numeric data type conversions. All numeric types get automatically promoted and demoted as needed. APL will usually use the most compact internal representation. | ||
Also notice that we use a proper multiplication symbol, <math>×</math>, for multiplication. If traditional mathematics has a symbol for a concept APL includes then APL will use that symbol. Another example is <math>÷</math> for division. | |||
== Tables == | == Tables == | ||
Remember the multiplication table from school? | Remember the multiplication table from school? |