On Monday, February 4 at 10:35 AM, quoth Daniele:
>it doesn't convert the number to engineering notation, moreover it
>seems not always to switch between enabled and disabled.
The previous fix I posted fixes the toggle between enabled and
disabled.
As for converting to engineering notation, it does not (currently) do
anything when used with an automatic precision setting, it's only
enforced when a specific precision has been set... which is probably
not good behavior. At the moment, wcalc relies on the judgment of
printf's %G specifier, which uses either engineering format or
non-engineering-format, depending on which one gives full precision in
minimum space.
If nothing else, that's a documentation bug. It seems like, if its
important, perhaps the engineering-notation setting should be a
triple-option: "auto", "always", and "never". What do you think?
~Kyle
--
My definition of a free society is a society where it is safe to be
unpopular.
-- Adlai E. Stevenson Jr.