Im having trouble making decimals. No matter what decimal it is, it always rounds to a whole number. I currently use double to make the variable for the decimal. Is that wrong? Please help. Thanks
techboy291 and Tzeentchful Code: int kills = getConfig().getInt(tplayer.getName() + ".kills"); int deaths = getConfig().getInt(tplayer.getName() + ".deaths"); double ratio = kills/deaths; My kills is 178 and deaths are 68 yet it returns ratio as 2.0
zakarls You get the both the values as ints (and store them as ints from what I can tell), get/set them as doubles
xTigerRebornx Ok. Ill try that zakarls Works. Thanks a lot EDIT by Moderator: merged posts, please use the edit button instead of double posting.