Webmastersite.net
Register Log In

price field: what is a 'float'?

Comments on price field: what is a 'float'?

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Aug 28, 2006 - 4:02 PM:

OK this is probably a basic question, but in this post here, you mention that Price needs to be a float; I created a Price field but chose 'integer'.... so my question is: what is 'float' and how can I rectify this now without having to create a new Price field and go through my templates again?

Thanks!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 30, 2006 - 4:53 PM:

Float is floating point, which means anything with a decimal. If you want non-integer numbers (as are conventional in currency for indicating cents as well as dollars), you want float.

Use phpmyadmin to edit field types.
capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Aug 30, 2006 - 5:06 PM:

cool, thanks
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.