extract remainder for floating point numbers
fmod(k, m)
floating point number
divisor number
returns remainder after dividing out the divisor part: j = floor(k/m) a = k-m*j return(a)
j = floor(k/m)
a = k-m*j
return(a)
# NOT RUN { ### degrees after removing extraneous 2*pi j = 540.23 fmod(j, 360) # }
Run the code above in your browser using DataCamp Workspace