Options for handling detail lines

ng:spellOutNumber

The built-in XPath function, ng:spellOutNumber can help you to spell out a number as text.

The output text is as-is and might not fit the exact way to write the amount of a text in any locale, but you can e.g. replace texts with the replace XPath function.

ng:spellOutNumber(number,locale)


The function accepts two parameters:

  1. number 
     This is the number (or amount), that you want to output spelled out.
  2. locale 
     This is the identification of the output language. This must be the full locale e.g. en-US, de-DE etc.

Prompting the parameters

If you insert the ng:spellOutNumber as the only function in an XPath enabled entry field, then you will see this:
If you click this icon, then you can quickly select the locale from a drop down list:
and if you click the icon below, then all parameters are prompted for:

Examples

Function

Outputs

   ng:spellOutNumber(123,'en-GB')
   one hundred twenty-three
   ng:spellOutNumber(11123.45,'en-GB')
   eleven thousand one hundred twenty-three point four five
   ng:spellOutNumber(123,'de-DE')

einhundertdreiundwanzig

   ng:spellOutNumber(123,'dk-DK')

hundrede og treogtyve