Perhaps i have replied for the other questions of you.simple thing is to use double in stead of integer.