Kyle Undefined
2012-07-20 11:52:30
Ok, so I'm building a calculator for one of our products. I got it all working and built a generic function since there will be more of these to built down the road.
The function I wrote is pretty sexy, if I do say so myself. I'm just having one issue with it. When I change the code to show decimals, it messes up the whole functionality. I have the code that messes up commented out for now, so you'll see it when you look at the file.
Open the attached file in your browser and see how it functions, then uncomment out the code that I have and run it again, you'll see what I'm talking about.
I believe the issue is in the setInterval function, but for the life of me I can't figure it out. This isn't a show stopping issue, since it works with whole numbers, I just want this to be exact as possible.
Any help would be greatly appreciated!
P.S. only the first three calculators are working at this time. The two on the first "page" and the one on "page" 2.
The function I wrote is pretty sexy, if I do say so myself. I'm just having one issue with it. When I change the code to show decimals, it messes up the whole functionality. I have the code that messes up commented out for now, so you'll see it when you look at the file.
Open the attached file in your browser and see how it functions, then uncomment out the code that I have and run it again, you'll see what I'm talking about.
I believe the issue is in the setInterval function, but for the life of me I can't figure it out. This isn't a show stopping issue, since it works with whole numbers, I just want this to be exact as possible.
Any help would be greatly appreciated!
P.S. only the first three calculators are working at this time. The two on the first "page" and the one on "page" 2.