Hi.
I wanna show prices with 2 decimal places, but PHP gives me 2.1 when adding 1.50 to 0.60! Is there a function to get 2 places or do you have an idea what to do?
Thank you very much!
Julia
Hello.
You should use printf (formatted printing) for this.
I think: printf("%.2f",$number) will do the trick.
See www.php.net/printf
Best regards, Guttorm.