By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,935 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,935 IT Pros & Developers. It's quick & easy.

Casting Out nines, This one didn't work

P: n/a
Greetings from a puzzled, person who has used Casting Out Nines for
years.
$4338.94 - $4413.70 = $74.76.
4 - 1 = 3
$74.76 7+4+7+6 = 6 casting out nines. This is the only time
I have seen this

Would someone e-mail me as to why it doesn't work this time

Rod Edington
Et**********@sbcglobal.net

Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Holistic wrote:
Greetings from a puzzled, person who has used Casting Out Nines for
years.
$4338.94 - $4413.70 = $74.76.
4 - 1 = 3
$74.76 7+4+7+6 = 6 casting out nines. This is the only time
I have seen this

Would someone e-mail me as to why it doesn't work this time


This has absolutely nothing to do with the C programming language.

That said, 4338.94 - 4413.70 equals -74.76, not 74.76. -6 + 9 = 3.

I'd invest in a calculator, which doesn't care if you know what you're
doing, and gives correct results without the need for checksums.

S.
Nov 15 '05 #2

P: n/a
On 6 Nov 2005 09:54:09 -0800, "Holistic" <et**********@sbcglobal.net>
wrote:
Greetings from a puzzled, person who has used Casting Out Nines for
years.
$4338.94 - $4413.70 = $74.76.
4 - 1 = 3
$74.76 7+4+7+6 = 6 casting out nines. This is the only time
I have seen this


obviously the result is -74.76 (note the *MINUS*)

Casting out 9s:
-7 + -4 + -7 + -6 = -24, adding 27 (3*9) will give the correct
result: 3, everything's alright!

-1 is equivalent to: 8! (not 1)
-2 is equivalent to: 7! (not 2)
....
Nov 15 '05 #3

P: n/a
Holistic made a completely off-topic post to comp.lang.c, including this
line:
Would someone e-mail me as to why it doesn't work this time This is ill-advised and rude as well, even when your post is topical.
Greetings from a puzzled, person who has used Casting Out Nines for
years.
$4338.94 - $4413.70 = $74.76.


No, it isn't. Learn simple arithmetic.
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.