Webmastersite.net
Register Log In

inputting a price, 7 figures, displays
as 1e+06??

Comments on inputting a price, 7 figures, displays

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Oct 10, 2005 - 4:17 PM:

have a custom field (from the classifiedsupgrade.php) that lets users input a price. When testing, I found that if the amount was 6 figures, eg 100000 it displayed fine, but if it was 7 figures eg 1000000, then it came out as 1e+06

??
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 12, 2005 - 12:51 AM:

Exponential notation. I can't turn up anything in google at the moment suggesting if there's a way to tell PHP after how many digits to use exponential notation. Or is it showing that way in mysql, and if so what field type?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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