Rare numbers: Difference between revisions

m
Line 3,428:
With 0.8.11, the built-in reverse() function will flip the digits of a number. Without this, you could write your own function to do so as follows (if not passed any negative numbers).
 
<lang langur>val .reverse = f toNumber join reverse split toString .n</lang>
 
=={{header|Phix}}==
1,007

edits