arithmetic

This is a discussion on arithmetic within the C++ Programming forums, part of the General Programming Boards category; For integers 5/2 = 2; 5%2 = 1; is there a similar function for double variables. etc 5.2/2 = 2; ...

  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
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    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, 03:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21