Text data locale for fixedformat (#1220)

* Apply Locale settings to result of FIXEDFORMAT method call
This commit is contained in:
Mark Baker 2019-10-28 20:37:12 +01:00 committed by GitHub
parent 89066d2568
commit 43b760501a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -273,7 +273,12 @@ class TextData
$decimals = 0; $decimals = 0;
} }
if (!$no_commas) { if (!$no_commas) {
$valueResult = number_format($valueResult, $decimals); $valueResult = number_format(
$valueResult,
$decimals,
StringHelper::getDecimalSeparator(),
StringHelper::getThousandsSeparator()
);
} }
return (string) $valueResult; return (string) $valueResult;