APL Wiki logo: Difference between revisions
Jump to navigation
Jump to search
m
→Rounding
Miraheze>Adám Brudzewsky |
Miraheze>Adám Brudzewsky m (→Rounding) |
||
Line 127: | Line 127: | ||
</source> | </source> | ||
== Rounding == | == Rounding == | ||
The last step is to round these numbers down. Traditional mathematics writes ''floor'' as <math>⌊x⌋</math> but APL is regular, | The last step is to round these numbers down. Traditional mathematics writes ''floor'' as <math>⌊x⌋</math> but APL is regular, so no function is denoted by two separated symbols. If the function takes a single argument, then the symbol will be on the left, so we write floor as <source lang=apl inline>⌊x</source>: | ||
<source lang=apl> | <source lang=apl> | ||
⌊∘.+⍨.5×4!⍨⍳5 | ⌊∘.+⍨.5×4!⍨⍳5 | ||
Line 137: | Line 137: | ||
</source> | </source> | ||
And there it is! | And there it is! | ||
== References == | == References == | ||
<references /> | <references /> |