public static boolean bcscale(Environment env, int scale) {
        env.getConfigValue("bcmath.scale", LongMemory.valueOf(scale));
        return true;
    }
bcmath extension
http://www.php.net/manual/ru/book.bc.php
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/BCMathFunctions.java