Flashdata is messing up numbers |
[eluser][email protected][/eluser]
Hello, I am storing a decimal number in the flash_data (ie. $42.99) and the serialize function inside the set_flash_data() is appending too many decimals. Later, when I retrieve the value there are issues with comparing the values. Has anyone come across this problem? Code: <?php
[eluser]Dready[/eluser]
Hello, the fastest trick I'm thinking of is to store your numbers as strings , something like : Code: $val = "42.99"; Code: $val = 42.99;
|
Welcome Guest, Not a member yet? Register Sign In |