Robochameleon  v1.0
iswhole.m
Go to the documentation of this file.
1 
2 function tf = iswhole(x,tol)
3 
4 if nargin<2
5  tol = 0;
6 end
7 
8 if abs(x-fix(x))<=tol
9  tf = true;
10 else
11  tf = false;
12 end
function iswhole(in x, in tol)
Determine whether or not input is a whole number.