How this could be PHP related when my own PHP script below is working fine? <?php $db = new SQLite3('iot.db'); $results = $db->query('select round(vcc,2) as vcc2 from tab;'); while ($row = $results->fetchArray()) { var_dump($row); } ?> While "select round(vcc,2) as vcc2 from tab;" in Adminer is not working (values are not rounded).
How this could be PHP related when my own PHP script below is working fine? <?php $db = new SQLite3('iot.db'); $results = $db->query('select round(vcc,2) as vcc2 from tab;'); while ($row = $results->fetchArray()) { var_dump($row); } ?> select round(vcc,2) as vcc2 from tab; in Adminer is not working (values are not rounded).
Round function doesn't work with SQLite3