Casting Out nines, This one didn't work

H

Holistic

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
(e-mail address removed)
 
S

Skarmander

Holistic said:
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.
 
G

guru

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)
....
 
M

Martin Ambuhl

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,927
Members
47,469
Latest member
benny001

Latest Threads

Top