I was trying to plot a step function for which I planned to make a: - floor() function by defining it as x-mod(x,1) But apparently mod only works with whole numbers