I have realized something which is going to be a headache in the rest of my current project. I don't know how I have not come across this before but let me show you an example:
You would expect 30,000 right? Because the first number format makes that number 10,000 it is now a string (I think) and when operated upon, it converts it to a number as if it were 10.000 (ie just 10).
How can I get around this? Am I going to have to double up on all my variables and only number_format them after they are 100% done with?
Code:
$x = number_format( 10000 ); $y = 3; echo( $x*$y );
How can I get around this? Am I going to have to double up on all my variables and only number_format them after they are 100% done with?
Comment