On 2008-06-10, Ben Schmidt <[EMAIL PROTECTED]> wrote:

Out of curiosity, why the preference for a few functions with 
parameters, e.g.,

> How about a single round function with a second parameter to 
> specify the type of rounding, and return an int? The second 
> argument could be 'floor|down|int' (round down), 'ceil|up' (round 
> up), 'trunc|zero' (towards zero), 'away' (away from zero), 
> 'nearest|round' (towards nearest integer, round away from zero if 
> half way), 'even' (towards nearest integer, round to the even 
> number if half way).

and

> math('sqrt',argument)
> math('exp',exponent[,base=e])
> math('log',argument[,base=e])
> math('sin',argument[,degrees (bool)=0])
> math('cos',argument[,degrees (bool)=0])
> math('tan',argument[,degrees (bool)=0])
> math('atan',argument[,degrees (bool)=0])

rather than several individual functions, e.g.,

   floor(argument)
   ceil(argument)
   abs(argument)
   round(argument)
   trunc(argument)

and

   sqrt(argument
   exp(exponent[,base=e])
   log(argument[,base=e])
   sin(argument[,degrees (bool)=0])
   cos(argument[,degrees (bool)=0])
   tan(argument[,degrees (bool)=0])
   atan(argument[,degrees (bool)=0])

as is more common.

Regards,
Gary


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui