Loading ...
Sorry, an error occurred while loading the content.

69954quick math computations

Expand Messages
  • stri ker
    Jun 3, 2006
    • 0 Attachment
      I frequently need to do some basic calculations. I have used the
      following within Vim for Integer calculations:

      :echo (4+7)*3-14
      19

      My question is this:
      Is there a way to do calculations with doubles instead of integers
      without piping to an external program like bc and then inserting into
      a buffer?
      For example

      :r!echo '491.41 - 29.74' | bc

      works when putting the result into the buffer.

      TIA,
      Kevin
    • Show all 16 messages in this topic