[eluser]Unknown[/eluser]
Hello to all of you!
First of all, I want to thank the CodeIgniter-Team to make this awesome and easy to use framework available for free!
I am a German web-developer (or about to become one) and currently working on a project using CI. The web-based application I am creating is going to be used by people who do not have much experience with personal computers and are ... well, not easy to convice to do anything against their habits ;-)
I have a little problem and do not know how to solve it (it's not entirely CI-related): The application I'm building has multiple forms on multiple pages to input data, which is then processed and stored in a (MySQL-based) database. In Germany, the common way to write/type floating point numbers (e.g. '3.456') is with a comma, like '3,456'. My question is, how do I work with float integers (not the correct term, I guess) and how can I let PHP do math with them? How do I process input data typed the 'German way'? E.g. if someone enters, let's say, a price of $34,95 ('$34.95'), what would be the best possible way to ensure a) PHP can work with this number and do maths, b) PHP/CI/MySQL won't crash and c) output the data (on other pages) in the 'German way'?
I'd appreciate you help and advice a lot! Thanks in advance and sorry for my bad English ;-)
Best regards,
Nico
p.s., I hope this is the right subforum ...