Just use the double version, no need to have float too. Also, you can get rid of the int version as well.