Dominique Pellé wrote:

> Attached patch fixes further problems with printf()
> for floats in Vim-7.4.2290.
> 
> Padding with 0 did not work properly when there is a sign:
> 
> :echo printf("%06.2f", -1.0)
> Actual: "0-1.00"
> Expected: "-01.00"
> 
> Forcing sign was not honored:
> 
> :echo printf("%+.2f", 1.0)
> Actual:  "1.00"
> Expected: "+1.00"
> 
> %F was the same as %f, but it should differ for INF and NAN:
> 
> :echo printf("%F", 1.0/0.0)
> Actual: inf
> Expected: INF
> 
> As far as I can tell, all issues I described earlier with
> printf() should now be fixed.
> 
> Patch also slightly improves test coverage of printf().

Thanks!

-- 
hundred-and-one symptoms of being an internet addict:
103. When you find yourself in the "Computer" section of Barnes & Noble
     enjoying yourself.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui