fmod {RFOC}R Documentation

Floating point remainer function

Description

extract remainder for floating point numbers

Usage

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


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


[Package RFOC version 1.0-5 Index]