Req #30701 [Opn->Wfx]: RFE: Option to disable implicit conversion of integers to floats

From: Date: Sat, 05 May 2018 17:41:14 +0000
Subject: Req #30701 [Opn->Wfx]: RFE: Option to disable implicit conversion of integers to floats
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215063@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=30701&edit=1 ID: 30701 Updated by: requinix@php.net Reported by: os at sumu dot org Summary: RFE: Option to disable implicit conversion of integers to floats -Status: Open +Status: Wont fix Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: any PHP Version: 5.0.2 Block user comment: N Private report: N New Comment: Old request is old. See ext/bc and ext/gmp for arbitrary-precision arithmetic. Previous Comments: ------------------------------------------------------------------------ [2004-11-06 15:28:03] os at sumu dot org Description: ------------ PHP implicitly converts integers to floats when they exceed MAX_LONG, making implementing various algorithms in PHP quite difficult. The change in float-to-integer conversion in version 5.0.2 causes even more grief as floats are now truncated. An option for letting integers overflow instead of converting them to floats would be great. Or perhaps a set of functions for doing integer-math. Related bug reports: #18166, #30233, #30315, #30577, #30598. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=30701&edit=1

« previous php.bugs (#215063) next »