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
John
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---