diff options
Diffstat (limited to 'Test/A06assign.ztst')
-rw-r--r-- | Test/A06assign.ztst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index bbed909c5..ec5331bd0 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -55,6 +55,13 @@ (( i == 30 )) 0:add to integer +# According to official printf info page: +# A floating-point argument must use a period before any fractional +# digits, but is printed according to the `LC_NUMERIC' category of the +# current locale. +# So, force LC_ALL to be C (otherwise it overrides LC_NUMERIC) + + LC_ALL=C LC_NUMERIC=C float f=3.4 f+=2.3 printf "%g\n" f |