Often, when writing a question, you will want to include a small number in a sentence
“A bag contains five red and three blue marbles”
Creating these sorts of questions using parameters has been difficult as the parameter system only works in numerals.
The ToEnglish command allows you to turn numeric parameters into words which can be used in your Word document. In the example above, you might have created two parameters, $r and $b, which contain the number of red and blue marbles. If you just use $r and $b in your text…
A bag contains $r red and $b blue marbles
You will see…
“A bag contains 5 red and 3 blue marbles”
You can turn these numbers into words by typing
A bag contains {toenglish($r)} red and {toenglish($b)} blue marbles
The ToEnglishCap command operates in exactly the same way but capitalises the first letter of the output for use at the beginning of sentences.
Discover more from Efofex News
Subscribe to get the latest posts sent to your email.