function y=frac(x)
y=x-fix(x);
if y<0
	y=y+1;
end
