6 thoughts on “mcm_8184

      1. You fixed it! Thank you. For future reference here is the code:

        function needs_more_precision( $decimal ) {
        	if ( preg_match( '#([0-4]{4,}|5{3,}6|6{3,}7|7{3,}8|8{3,}9)$#', $decimal, $match ) ) {
        		if ( $match ) {
        			$repeat = $match[0]{0};
        			if ( $repeat < 5 )
        				$decimal = preg_replace( '#' . $repeat . '{4,}$#', str_repeat( $repeat, 100 ), $decimal );
        			else
        				$decimal = preg_replace( '#' . $repeat . '{3,}' . ($repeat + 1) . '$#', str_repeat( $repeat, 100) . ($repeat + 1), $decimal );
        		}
        	}
        	return $decimal;
        }
        

SHARE YOUR THOUGHTS