added %(mod) operation && float variable declaration