On Tue 10-Jun-08 2:02pm -0600, Bram Moolenaar wrote:
> I think just adding basic operations, which are very likely needed
> once you have floating point numbers, is all we should do at this
> point.
>
> For example, round() can convert a float to an int. It makes sense
> to add that: after using floating point computations to avoid
> roundoff problems you want the resulting number (e.g., a
> percentage).
Once you write something for 'double func(double)', you've got:
sin, cos, tan, sinh, cosh, tanh, asin, acos,
atan, exp, log, log10, sqrt, ceil, floor, fabs
And once you do 'double func(double, double)', then you have:
atan2, pow, fmod
These are all readily available when you compile with <math.h>.
Although I'd love to see an operator to raise a number to a power,
that would appear far more complicated that just providing pow().
Personally, I can do without the trig and rounding stuff, but find
exp(), log() and pow() to be essential. OTOH, adding the other
functions is almost completely cost free.
--
Best regards,
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---