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
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?
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on inputting a price, 7 figures, displays
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
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
??
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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?