Difference between revisions of "Manuals/calci/SPELLDIGIT"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div style="font-size:30px">'''SPELLDIGIT(digit)'''</div><br/> *where <math>digit</math> is the digit to be spelled. ==Description== *This function is used to spell the give...")
 
Line 3: Line 3:
  
 
==Description==
 
==Description==
*This function is used to spell the given digit.
+
*This function displays the spelling or number name of given digit.
 
*Argument <math>digit</math> should be single digit number between 0 and 9.
 
*Argument <math>digit</math> should be single digit number between 0 and 9.
 
*For non-numeric argument such as character, string or special characters, calci gives an error.
 
*For non-numeric argument such as character, string or special characters, calci gives an error.
Line 12: Line 12:
 
*SPELLDIGIT(8,9)= eight
 
*SPELLDIGIT(8,9)= eight
 
*SPELLDIGIT(1..9)= one two three four five six seven eight nine  
 
*SPELLDIGIT(1..9)= one two three four five six seven eight nine  
*UNDERLINE("$")= Error
+
*SPELLDIGIT("$")= Error
 
*SPELLDIGIT(-4) = Error
 
*SPELLDIGIT(-4) = Error
 
*SPELLDIGIT(0.1) = Error
 
*SPELLDIGIT(0.1) = Error

Revision as of 04:25, 24 April 2017

SPELLDIGIT(digit)


  • where is the digit to be spelled.

Description

  • This function displays the spelling or number name of given digit.
  • Argument should be single digit number between 0 and 9.
  • For non-numeric argument such as character, string or special characters, calci gives an error.
  • For more than one digits, only first digit is spelled.

Examples

  • SPELLDIGIT(0)= zero
  • SPELLDIGIT(8,9)= eight
  • SPELLDIGIT(1..9)= one two three four five six seven eight nine
  • SPELLDIGIT("$")= Error
  • SPELLDIGIT(-4) = Error
  • SPELLDIGIT(0.1) = Error


See Also


References