View Single Post
  #3   Spotlight this post!  
Unread 02-01-2013, 12:41 AM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,000
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: remainder function



fmod(x,y) is quite different from remainder(x,y)

The 3 columns below are x, remainder(x,360), and fmod(360):

Code:
 180.000     -180.000      180.000
 181.000     -179.000      181.000
-181.000      179.000     -181.000
 359.000       -1.000      359.000
-359.000        1.000     -359.000
 719.000       -1.000      359.000
-719.000        1.000     -359.000


Reply With Quote