title: How to convert string to number in php without rounding?
body: <p>I am retrieving some values stored as string which have up to 15 decimal places. I need to <code>json_encode</code>it and pass it on to javascript as numeric value. So I tried <code>(float)$number</code>, but the number gets rounded-off in this approach. How else can I convert it to number without any rounding?</p>