With the possible support for python and perl, you can perform just about any calculation you would want to do.
For example:
:py print 31.25 * 3    = 93.75
or
:!perl -e 'print 14.275 * 2'  = 28.55

Obviously you can get a lot more complicated than that.
Kevin


On Dec 3, 2006, at 11:16 AM, Bram Moolenaar wrote:


Edward L. Fox wrote:

If you strike Ctrl-a in normal mode on 12345678912, you will get
3755744321. Obviously an integer overflow happens here. Do you think
it's necessary to add large decimal related algorithm into Vim to
solve this kind of problems? Or at least we should give out an error
message...

Or compile Vim with 64 bit ints.

I'm not sure it is worth adding code for big numbers, they are hardly
ever used.  Vim also doesn't support floating point.  One has to stop
somewhere.  After all this is a text editor, not a spreadsheet.

--
Q:   How many hardware engineers does it take to change a lightbulb?
A:   None.  We'll fix it in software.

/// Bram Moolenaar -- [EMAIL PROTECTED] -- http:// www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/ sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A- P.org /// \\\ help me help AIDS victims -- http://ICCF- Holland.org ///


Reply via email to