Re: [RFC] [Discussion] Support object type in BCMath

From: Date: Tue, 09 Apr 2024 13:45:34 +0000
Subject: Re: [RFC] [Discussion] Support object type in BCMath
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-123056@lists.php.net to get a copy of this message
Hi, To be honest, I think it would be much easier to use if we could make it look like this: - Use precision instead of scale - The default maximum precision is 20 digits - The default rounding mode is HALF_UP - The constructor takes only $num arguments - The method can optionally specify any precision and any rounding mode when calculating - Operators always use only default values ​​in their calculations However, BCMath has worked with scale for a long time, so I'm not sure that introducing precision behavior here would be of any benefit to users... Regards. Saki

« previous php.internals (#123056) next »