Number names: Difference between revisions

m
→‎{{header|Phix}}: builtins\ordinal.e note
m (→‎{{header|Phix}}: builtins\ordinal.e note)
Line 3,913:
{{Trans|Ada}}
Fraction ideas copied from [[Number_names#HicEst|HicEst]], using billion=10^9, trillion=10^12, quadrillion=10^15, and limited to 999 quadrillion.<br>
Implemented as an [[Executable_library]] for use in [[Names_to_numbers#Phix|Names_to_numbers]].<br>
The distribution now contains builtins\ordinal.e which implements spell() as ordinal(atom n, bool bJustSpell=true), see the manual.
<lang Phix>-- demo/rosetta/Number_names.exw
constant twenties = {"zero","one","two","three","four","five","six","seven","eight","nine","ten",
7,794

edits