Robochameleon
v1.0
Main Page
User Guides
Code groups
Classes
Files
File List
File Members
utils
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
iswhole
function iswhole(in x, in tol)
Determine whether or not input is a whole number.
Generated on Fri Dec 9 2016 18:23:38 for Robochameleon by
1.8.11