Pacific Database

Home | Contact | FAQs | View Cart

A world of information at your fingertips

Number manipulations

Num2Text :: Converts a number to text

This function simply converts a number to its textual representation. For example:

123.4 becomes "One Hundred and Twenty Three Point Four"

Numbers can be converted into uppercase, lowercase, or proper case, and can be converted into the following formats:

  • Real (example: "One Hundred and Twenty Three Point Four")
  • Verbatim (example: "One Two Three Point Four")
  • Currency (example: "One Hundred and Twenty Three Dollars and Forty Cents")
  • Kilometres (example: "One Hundred and Twenty Three Point Four Kilometers")
  • Miles (example: "One Hundred and Twenty Three Point Four Miles")
  • Roman numerals (example: "CXXIII") - Does not do fractions