# Bug or bad coding?

**URL:** <https://forum.kirupa.com/t/bug-or-bad-coding/211922>\
**Category:** Uncategorized\
**Created:** [January 6, 2007, 1:16pm UTC](https://forum.kirupa.com/t/bug-or-bad-coding/211922 "2007-01-06T13:16:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![540media](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/540media/32/2543_2.png) [@540media](https://forum.kirupa.com/u/540media)\
**Post date:** [January 6, 2007, 1:16pm UTC](https://forum.kirupa.com/t/bug-or-bad-coding/211922/1 "2007-01-06T13:16:23Z")

</div>

Hi

can someone help me out with this if possible, I dont know if its a bug or just bad coding on my part, but its driving me mad!!!

I building a math program to help kids.  
one of the test I’ve build comes up with a intermittent error

it works by pulling five numbers from an array between 0 and 99 and then divides it by 10  
then its mulitplied by either 10 or 100 (this is done by random)

the error that I am getting is that when certain number combinations come up the answer is wrong even if the user enters the correct answer

the numbers that seem to be a problem are  
4.4 \* 100  
4.1 \* 100  
1.1 \* 100  
4.6 \* 100  
4.9 \* 100  
8.8 \* 100  
there could be others but these are the one I’ve found so far

I am stumped with this, can anyone help??

links below

[http://www.fivefortymedia.com/code/decimal.fla](http://www.fivefortymedia.com/code/decimal.fla)  
[http://www.fivefortymedia.com/code/decimal.swf](http://www.fivefortymedia.com/code/decimal.swf)
