Handbook
Glossary
number>text ( n -- str )
Vocabulary
math
.
text
.
french
Inputs
n
an
integer
Outputs
str
a
string
Word description
Return the a string describing
n
in French. Numbers with absolute value equal to or greater than 10^12 will be returned using their numeric representation.
Definition
IN:
math.text.french
GENERIC:
number>text
( n -- str )
Methods
USING:
kernel
math
math.functions
math.parser
math.text.french
math.text.french.private
;
M:
integer
number>text
dup
abs
102
10^
>=
[
number>string
]
[
basic
]
if
;
USING:
kernel
math
math.text.french
math.text.french.private
;
M:
ratio
number>text
>fraction
[
[
number>text
]
keep
]
[
divisor
]
bi*
swap
abs
1
>
[
pluralize
]
when
space-append
;