Chronology | Current Month | Current Thread | Current Date |
[Year List] [Month List (current year)] | [Date Index] [Thread Index] | [Thread Prev] [Thread Next] | [Date Prev] [Date Next] |
For the first two, my best bet would be -9. [...] a writer of an interpreter
or compiler can do it any way they want; there are probably some for
which the result is 9. There might be some that introduce a rounding
error. My TI83+ calculator gives -9. Microsoft Excel gives 9. I'm
not sure at all of my answer. When in doubt, I use parentheses, or,
in some cases, I experiment to find out how the device/language I am
working with handles the expression.
Exponentiation generally takes precedence over negation.