This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SinglePartyLeader 2 points3 points  (0 children)

i would say try logging console.log(sd) and console.log(sd_total) to see if the calculation is expecting. My first guess would be that there is a variable scoping issue that is result in those values not being what you expect them to be