public static function PHPExcel_Shared_String::getDecimalSeparator in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/String.php \PHPExcel_Shared_String::getDecimalSeparator()
* Get the decimal separator. If it has not yet been set explicitly, try to obtain number * formatting information from locale. * *
Return value
string
2 calls to PHPExcel_Shared_String::getDecimalSeparator()
- PHPExcel_Cell_AdvancedValueBinder::bindValue in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Cell/ AdvancedValueBinder.php - Bind value to a cell
- PHPExcel_Style_NumberFormat::toFormattedString in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ NumberFormat.php - * Convert a value in a pre-defined format to a PHP string * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ String.php, line 687
Class
- PHPExcel_Shared_String
- PHPExcel_Shared_String
Code
public static function getDecimalSeparator() {
if (!isset(self::$_decimalSeparator)) {
$localeconv = localeconv();
self::$_decimalSeparator = $localeconv['decimal_point'] != '' ? $localeconv['decimal_point'] : $localeconv['mon_decimal_point'];
if (self::$_decimalSeparator == '') {
// Default to .
self::$_decimalSeparator = '.';
}
}
return self::$_decimalSeparator;
}