The Standard LibrarymathMethodsfmodOn this pagefmodComputes the remainder of division. fmod(256, 12); //4 Syntax fmod(x, y) Returns The computed value as a double.