John Beckett wrote:
> Bram Moolenaar wrote:
> > I mean: Vim is using the library printf() to do the
> > conversion, but I don't see a way to tell printf() to omit
> > superfluous zeroes.
>
> g and G omit superfluos zeroes, as well as the decimal point:
>
> double n = 12;
> printf("%g\n", n); // prints 12
> printf("%#g\n", n); // prints 12.0000
Vim is already using %g. For me the results are different.
--
How To Keep A Healthy Level Of Insanity:
6. In the memo field of all your checks, write "for sexual favors".
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---