From a7d2134271bbec1dac2f0d58d0c8522c6dd62a82 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Wed, 26 Jan 2011 09:40:40 +0000 Subject: [PATCH] Fix to a problem that I introduced with last night's changes to precision in the calculation engine git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@67429 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Calculation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Calculation.php b/Classes/PHPExcel/Calculation.php index 0c2d2a63..2afd2ccb 100644 --- a/Classes/PHPExcel/Calculation.php +++ b/Classes/PHPExcel/Calculation.php @@ -1678,7 +1678,7 @@ class PHPExcel_Calculation { $setPrecision = (PHP_INT_SIZE == 4) ? 12 : 16; $this->_savedPrecision = ini_get('precision'); - if ($savedPrecision < $setPrecision) { + if ($this->_savedPrecision < $setPrecision) { ini_set('precision',$setPrecision); } } // function __construct()