fmod: Floating point remainer function

Description Usage Arguments Value Author(s) Examples

Description

extract remainder for floating point numbers

Usage

1
fmod(k, m)

Arguments

k

floating point number

m

divisor number

Value

returns remainder after dividing out the divisor part:
j = floor(k/m)
a = k-m*j
return(a)

Author(s)

Jonathan M. Lees <jonathan.lees@unc.edu>

Examples

1
2
3
###  degrees after removing extraneous 2*pi
j = 540.23
fmod(j, 360)


Search within the RPMG package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.