LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #18   Report Post  
Old May 9th 09, 12:09 PM posted to rec.radio.amateur.antenna
external usenet poster
 
First recorded activity by RadioBanter: Jul 2006
Posts: 797
Default Be careful when using Excel


"Antonio Vernucci" wrote in message
...
Do you realise that the '-' in both expressions are quite different in
meaning, one is a unary negation operator, the other is the binary
subract operator.


I realise, but Microsoft apparently does not:

- for Excel: (-2^2 + 8) = 12
- for Visual Basic: (-2^2 + 8) = 4

They look pretty much the same

Not to a programmer!


I would expect that some programmers may get confused, due to the
inconsistency of software products of the same company.

Tony I0JX

REAL programmers know the difference and add extra parenthesis just to be
sure the processor does what we want. for instance, i would NEVER use a
unary negate without adding parenthesis to be sure it was applied properly.
In most cases i would write that equation like: ((-1*A1)^2)+8, or even more
obvious in excel: power(-1*a1,2)+8

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
everyone better be careful while building those shortwave radios [email protected] Shortwave 9 April 14th 08 08:50 PM
Be careful replying to off topic messages here! (La Site Communique) Dave Boatanchors 0 February 10th 04 10:15 PM
Be Careful What you Say on The Air Girls Dwight Stewart General 2 December 18th 03 02:22 AM
Be Careful What you Say on The Air Girls Dwight Stewart Scanner 2 December 18th 03 02:22 AM
Be Careful What you Say on The Air Girls Dwight Stewart Shortwave 2 December 18th 03 02:22 AM


All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 RadioBanter.
The comments are property of their posters.
 

About Us

"It's about Radio"

 

Copyright © 2017