mob/verb/drop_gold()
ammount_to_drop = input(usr,"How much gold do you wish to drop?","Gold to Drop?",usr.gold)
while(ammount_to_drop % 1.00 != 0)
usr << "You can not drop a value that is not a whole number."
return
if(ammount_to_drop >> usr.gold)
usr << "You don't even have that much gold to drop."
return
if(ammount_to_drop <= -1)
usr << "You can not drop negative gold."
return
else
new/obj/gold(usr.loc, ammount_to_drop)
usr.gold -= ammount_to_drop
usr << "You drop [ammount_to_drop] gold."
Problem description:Now, everything is fine, no errors, no warnings, but the modulus is not working. If the ammount_to_drop == 25.6, then it's remainder is not equal to 0, it equals 6. But it says even when I input the 25.6, that the remainder is still 0? Either the modulus is broken, or I'm doing something wrong.