bcscaleSet or get default scale parameter for all bc math functions Description
int bcscale(int
$scale )Sets the default scale parameter for all subsequent calls to bc math functions that do not explicitly specify a scale parameter. int bcscale(null
$scale = null )Gets the current scale factor. Parameters
Return ValuesReturns the old scale when used as setter. Otherwise the current scale is returned. Changelog
Examples
Example #1 bcscale example
|