[int2words]
int2words is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Spells an integer out in English words (e.g. 557 becomes ‘five hundred and fifty seven’); handy for invoices and cheques.
- Value (
integer,number), required: Integer value to convert to words - Returns: Resolves to the supplied integer written as words
Guide: How to use [int2words]
JSON declaration
This is the complete declaration of int2words, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "int2words",
"description": "Spells an integer out in English words (e.g. 557 becomes 'five hundred and fifty seven'); handy for invoices and cheques",
"signature": {
"input": {
"kind": "integer,number",
"description": "Integer value to convert to words",
"required": true,
"mode": "ValueOrExpression"
},
"output": {
"mode": "Value",
"kind": "text",
"description": "Resolves to the supplied integer written as words"
}
}
}
← insert-before |
all core slots | invoke → |