On Mon 1-Dec-08 12:57am -0600, Tony Mechelynck wrote:
> On 01/12/08 07:03, Bill McCarthy wrote:
>> On Sun 30-Nov-08 6:20pm -0600, Tony Mechelynck wrote:
>>
>>> Slightly (but not wholly) OT: Bill, I know that your extra float
>>> functions' help has of course long since been erased by syncing with the
>>> "official" doc/eval.txt. Maybe it would be worth while to publish it
>>> separately, and with a different filename, as something which could be
>>> dropped into $VIM/vimfiles/doc/ in order to avoid conflicts in the future.
>>
>> A first pass at this is attached, saved after "set ff=unix".
>>
>
> Thanks! I've added it to $VIM/vimfiles/doc, run ":helptags
> $VIM/vimfiles/doc", and it works. I haven't yet checked it in the most
> painstaking detail, but I've noticed one thing already: unlike ":help
> log10()" in Bram's eval.txt, ":help log()" specified that the argument
> must be positive. However, both ":echo log10(-1)" and ":echo log(-1)"
> output "nan" without giving a Vim error. I believe this is the right
> behaviour. So which help paragraph is right? ... Maybe both of them,
> from slightly different viewpoints?
>
> Compiled with "gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]"
My C docs say a negative number produces a domain error. A
zero produces a range error. Assuming these Open Watcom
docs are correct, I've specified the argument must be a
positive NUMBER or FLOAT, hence my notation (0,inf] - you
correctly assumed my "(" means open and "]" means closed for
ranges. Of course it may be better to always consider "inf"
as open.
Please let me know if you spot any errors or a need for
clarification.
--
Best regards,
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---