Re: Excel Math Bug

From: Jerry W. Lewis (post_a_reply_at_no_e-mail.com)
Date: 08/02/04


Date: Mon, 02 Aug 2004 13:31:00 GMT


Amedee Van Gasse wrote:
...

> =-(5^2)
> returns +25

I think you meant "returns -25"; +25 would be a bug for this one (but
not one that I can reproduce).

That -5^2 returns +25 is covered by Help for "About calculation
operators" subtopic "The order in which Excel performs operations in
formulas". As Tom noted, different programs may use different orders of
operator precedence. Programmers are responsible for learning the
languages that they use. It is a bit more problematic when one person
provides the formulas (or even the code) and another implements it, but
that is what testing is for.

I once got burned providing an algorithm that someone else then
implemented in a flavor of Basic that evaluated strictly left to right
with no algebraic hierarchy (other than parentheses) at all. I was
irritated that someone would write a language that worked that way, but
they documented how it worked, so our ignorance of their documentation
was not their fault. Fred's consultant should have known better than to
imply that any developer could be sued for producing a package that
operated as documented.

Jerry



Relevant Pages

  • RE: DDE Link Change Event
    ... It looks like this may still be a bug in Excel. ... Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied ... You can create a Visual Basic event macro that runs whenever the data on a worksheet is changed. ... you will have the documentation that you need to understand the object model. ...
    (microsoft.public.vsnet.vstools.office)
  • Re: Equation behind the Function
    ... the documentation through my HP12c calculator to verify results. ... The PV function in Excel Help only shows the one equation, though, and the ... Again, as I recall, the Excel 4 documention displayed the math behind many ... The Excel help documentation explains how to use the PMT function, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Cobol work?
    ... Other languages have commenting ... >> documentation is not part of the usual teaching method. ... > characters long), and restrictions such as variables whose type were integer ... and external identifiers have only 31 ...
    (comp.lang.cobol)
  • Re: Cobol work?
    ... COBOL shops emphasized documentation in code and controls because this code was ... Not all languages are equally ... >letters and a dozen syllables. ... Tihs is bcuseae the huamn mnid deos not raed ervey lteter by ...
    (comp.lang.cobol)
  • excel 2003 and c++ API documentation?
    ... I have been looking for documentation - any documentation or better yet, ... code examples regarding the c++ objects and methods for excel 2003. ... I can't open an existing workbook because I ... ExcelWorkbooks excelWBs = app.get_Workbooks; ...
    (microsoft.public.excel.programming)