View Single Post
  #12   Spotlight this post!  
Unread 01-02-2013, 12:57
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: remainder function

Quote:
Originally Posted by 1075guy View Post
There's definitely a modulus division operator, which amounts to the same thing.

719 % 360 = 359
Right, but it rounds the same as fmod() (see http://www.gnu.org/software/libc/man...Functions.html). I don't have enough experience to say when this would be more or less useful in practice, but if you DO need it extern "C" seems to be the way to go about it.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote