In PHP I make a simple calculation, but with strings
$num_1 = '200.50'; (string)
$num_2 = '100.50'; (string)
echo $num_1 - $num_2
The result is as expected 100.00
What I wonder about is the fact that I did not cast the values to float and still got the correct result.
And my question is if this kind of (string) calculation is reliable ?