Skip to content

Commit 27f4788

Browse files
committed
Fix multiple
1 parent 9244e32 commit 27f4788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/Divisibility_of_integers/multiple.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
% OUTPUT: Is a boolean value 0 or 1.
77
% THROWS: Throws a assertion error if the inputs invalid.
88

9-
assert((isnumeric(x) && isnumeric(m)), "The inputs must be integers")
9+
assert((x == round(x) && m == round(m)), "The inputs must be integers")
1010

1111
if m == 0
1212
ans = (x == 0);

0 commit comments

Comments
 (0)