I have:
$newscore = $score*.3
Now the $newscore
when dumped shows:
(float)0.6 (float)-0.6
when echoed:
0.6-0.6
Firstly how can I make the var value just 0.6
as the $score
is only positive 2
? Is there a convert to string or something like that.
Secondly the stored value in $newscore
does not seem to pass to my SQL INSERT function which is setup using placeholder method %d $newscore
.