[PHP-DEV] Bug #1325 Updated: longval() and a (long) cast would be handy From: Bug Database (php-dev <email protected>)
Date: 04/14/00

ID: 1325
Updated by: rasmus
Reported By: maarnold <email protected>
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:

They do return longs. For example, floor() does this:

    if (value->type == IS_DOUBLE) {
        RETURN_LONG((long)floor(value->value.dval));
    }

You probably want to have a look at the bcmath functions instead.

Full Bug description available at: http://bugs.php.net/?id=1325

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>