Possible Duplicate:
Javascript Math Error: Inexact Floats
I did this
this.cues = []
for(var i, i = 1; i <= 8; i++){
cue = this.length * (i/8.0)
this.cues.push(cue)
where this.length is a double. I checked the division and found that I was off by .000002 up to about the fourth array cell.
- Is there any javascript-specific cause for this anybody can think of? It may just be the environment, so if not no big deal
- If so, can I fix it?
Many thanks in advance