We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9244e32 commit 27f4788Copy full SHA for 27f4788
algorithms/Divisibility_of_integers/multiple.m
@@ -6,7 +6,7 @@
6
% OUTPUT: Is a boolean value 0 or 1.
7
% THROWS: Throws a assertion error if the inputs invalid.
8
9
- assert((isnumeric(x) && isnumeric(m)), "The inputs must be integers")
+ assert((x == round(x) && m == round(m)), "The inputs must be integers")
10
11
if m == 0
12
ans = (x == 0);
0 commit comments