bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REQUEST - bash floating point math support


From: Koichi Murase
Subject: Re: REQUEST - bash floating point math support
Date: Sat, 15 Jun 2024 09:49:26 +0900

2024年6月14日(金) 16:18 Léa Gris <lea.gris@noiraude.net>:
> Another elegant option would be to expand the existing variables' i flag
> to tell the variable is numeric rather than integer.
>
> Then have printf handle argument variables with the numeric flag as
> using the LC_NUMERIC=C floating-point format with dot radix point.

In that design, how does the `printf' builtin know that the argument
string is generated by a specific variable with the numeric flag?  The
`printf' builtin is a (builtin) command that receives arguments as
strings.  The arguments do not carry the contexts of how the strings
are generated, (though some of the exceptions are the array
assignments of the assignment builtins).

--
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]