Working with Money and Number Formats

Learn how to work with various types of money input and output formats, using Corvid (a.k.a. Wix Code). Learn how to convert money formats to number formats and visa versa.

This example shows you how to allow the user to input any type of money format regardless of dollar sign, commas or decimals and converts it into a number format for calculation, display or saving to a collection. This example also shows you how to take a number format and convert it back into a money format including dollar sign and comma separator for thousands and millions of dollars. Try the example below.

#iptMoney
Enter an amount to start!
#txtNumber
#iptNumber
#txtMoney
Enter an number to start!
Please wait ...
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! All our code snippets come with full support to help you implement them on your own website - simply contact us for help.
  • Facebook Social Icon
  • MeWe-Fluid-Icon
© CorvidCodeBank