big10p #1 That's happening because the integer division of 500/19 is being done before it gets converted to a float. Just do 500.0/19.0 instead