public static function PHPExcel_Shared_String::FormatNumber in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::FormatNumber()
* Formats a numeric value as a string for output in various output writers forcing * point as decimal separator in case locale is other than English. * *
Parameters
mixed $value: * @return string
6 calls to PHPExcel_Shared_String::FormatNumber()
- PHPExcel_Writer_Excel2007_Worksheet::_writeCell in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Worksheet.php - * Write Cell * *
- PHPExcel_Writer_Excel2007_Worksheet::_writeCols in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Worksheet.php - * Write Cols * *
- PHPExcel_Writer_Excel2007_Worksheet::_writePageMargins in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Worksheet.php - * Write PageMargins * *
- PHPExcel_Writer_Excel2007_Worksheet::_writeSheetData in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Worksheet.php - * Write SheetData * *
- PHPExcel_Writer_Excel2007_Worksheet::_writeSheetFormatPr in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Worksheet.php - * Write SheetFormatPr * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ String.php, line 416
Class
- PHPExcel_Shared_String
- PHPExcel_Shared_String
Code
public static function FormatNumber($value) {
if (is_float($value)) {
return str_replace(',', '.', $value);
}
return (string) $value;
}