Boose
Wednesday, 18 September 2013
PHP. Addition two string floats
PHP. Addition two string floats
I have such piece of code:
$a = '100.00'; //from db
$b = '1.01'; //from form
So,
echo $a+$b;
gives me 101 floatval and doubleval doesn't help.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment