This is my sample code:
$objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->getActiveSheet()->SetCellValue('A2', '1.0');
$objPHPExcel->getActiveSheet()->SetCellValue('B2', '0.0');
$objPHPExcel->getActiveSheet()->SetCellValue('C2', '1.2');
$objPHPExcel->getActiveSheet()->SetCellValue('D2', '100');
I get rounded values ββfor A2->1and in the excel sheet B2->0, and what I need for output in the excel sheet is A2->1.0and B2->0.0. I need float values ββto end with .zero ( .0) for printing. A.
Please help me...
source
share