public function getBcScale() { $sqrt = bcsqrt('2'); return strlen(substr($sqrt, strpos($sqrt, '.') + 1)); }