Thread: arithmetic

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    65

    arithmetic

    For integers 5/2 = 2; 5%2 = 1;
    is there a similar function for double variables.
    etc 5.2/2 = 2; 5.2%2 = 1.2?

    Shuo

  2. #2
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    fmod() in math

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about pointer arithmetic and types
    By brooksbp in forum C Programming
    Replies: 4
    Last Post: 08-22-2008, 01:53 PM
  2. GNU Multiple Precision Arithmetic Library Problem
    By parad0x13 in forum C++ Programming
    Replies: 1
    Last Post: 07-19-2008, 04:16 PM
  3. Replies: 3
    Last Post: 05-01-2003, 12:47 PM
  4. Pointer arithmetic
    By freebu in forum C Programming
    Replies: 4
    Last Post: 04-27-2003, 09:27 AM
  5. Replies: 1
    Last Post: 11-19-2001, 04:45 PM