Jump to content

Convert Char to number


haibec
 Share

Recommended Posts

You can't multiply a character, you multiply numbers. If the field only stores numbers it would be a lot better to just make it a number field. If you want to keep it as characters then you will need to convert it to a number whenever you do an operation. It will probably be best to use the database's functions to do the conversion, so check the documentation for the database that you're using to find out what the conversion functions are.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...