Change int type to float or double in all functions From discussion #32
Change int type to float or double in all functions
From discussion #32