Hi,
I’ve run into an issue with a site we’ve just finished development on. It’s a site which lists boats which are for sale, and as such some of these boats are in the multi-million dollar range. I’m getting the client to enter these prices into the site without any symbols, so $13,500,000 is entered into the backend as 13500000. This is so that it works as expected when the user is searching/sorting by price.
When I select Number as the type of content on a text field EE then changes how the number is stored and is shown like this: 1.35e+07 - which isn’t very helpful for the client or when searching the site.
Now if I change the type of content to Integer or Any the number is shown correctly in the back-end and front-end however it is no longer ordered correctly in the search results with prices appearing in no particular order ($100,000 is shown before $1,000,000) when sorting by highest price.
So in summary, I need to store my prices as a ‘Number’ content type to get search results to display correctly when searching/sorting by price, but EE is taking any number over a million dollars and changing it to store it using math which is way over a clients head (and mine). Please help as this project cannot go live until we have a resolution.
Thanks
EDIT: 2.1.3 / 20101220 / MySQL: 5.0.51a / PHP: 5.2.6-1