A Flash Developer Resource Site

# Thread: A Bug In Maths, 81 divided by 2 error

1. ## A Bug In Maths, 81 divided by 2 error

If you divide 81 by 2 using the normal division method, you get 4.5 as the answer, when the answer should be 40.5

Discuss?

2. Code:
```var int_val:Number = 81;
trace((int_val/2)); // 40.5

trace(81/2); //40.5```

3. Try dividing manually, the basic division technique taught in schools.

Try dividing manually, the basic division technique taught in schools.
That's weird, if I try that, I am getting 31.77777(7 repeats infinitely). I think you're onto something here.

5. The way i was taught in school.

2 goes into 8, 4 times = 4

2 goes into 1, 0 times = 40

2 goes into 10, 5 times = 40.5

Or you can simply split it in half since we're dividing by 2, half of 80 is 40, half of 1 is .5
I don't know who taught you how to divide, but they did it wrong.

6. wait, you dont know that division technique taught in indian schools, no wonder we gettin all the jobs man lol

Can you tell what answer do you get when you divide 82 by 4?

8. I am getting 42. Looks like you've found THE question.

9. Originally Posted by martiansam

Can you tell what answer do you get when you divide 82 by 4?
:O my god, another one. I am getting 2.5.

10. That explains.

:O my god, another one. I am getting 2.5.
should not you be getting 20.5, okay it's division on units i.e., 8/4 and 2/4, so is 2.5

12. Try 'Long Division' method.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

 » Home » Movies » Tutorials » Submissions » Board » Links » Reviews » Feedback » Gallery » Fonts » The Lounge » Sound Loops » Sound FX » About FK » Sitemap