You are here

private function PHPExcel_Calculation::__construct in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php \PHPExcel_Calculation::__construct()

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php, line 1723

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

private function __construct(PHPExcel $workbook = NULL) {
  $setPrecision = PHP_INT_SIZE == 4 ? 14 : 16;
  $this->_savedPrecision = ini_get('precision');
  if ($this->_savedPrecision < $setPrecision) {
    ini_set('precision', $setPrecision);
  }
  $this->delta = 1 * pow(10, -$setPrecision);
  if ($workbook !== NULL) {
    self::$_workbookSets[$workbook
      ->getID()] = $this;
  }
  $this->_workbook = $workbook;
  $this->_cyclicReferenceStack = new PHPExcel_CalcEngine_CyclicReferenceStack();
  $this->_debugLog = new PHPExcel_CalcEngine_Logger($this->_cyclicReferenceStack);
}