src/Encoder/FloatEncoder.php
private function determinePrecision($options)
    {
        $precision = $options['float.precision'];

        if ($precision === false) {
            $precision = ini_get('serialize_precision');
        }

        return max(1, (int) $precision);
    }
private function determinePrecision($options)
    {
        $precision = $options['float.precision'];

        if ($precision === false) {
            $precision = ini_get('serialize_precision');
        }

        return max(1, (int) $precision);
    }
private function determinePrecision ( $ options ) { $ precision = $ options [ 'float.precision' ] ; if ( $ precision === false ) { $ precision = ini_get ( 'serialize_precision' ) ; } return max ( 1 , ( int ) $ precision ) ; }
Determines the float precision based on the options.
@param array $options The float encoding options
@return int The precision used to encode floats
Determines the float precision based on the options .