Thread: unsigned double?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    You need to cast your variables to long doubles.

    sum = (long double) c1 * (long double) c2 * (long double) c3 * (long double) c4 * (long double) c5;

    or maybe just casting the first is good enough:

    sum = (long double) c1 * c2 * c3 * c4 * c5;

    I think you can use the <static cast> method, but I'm not sure of the syntax.
    Last edited by swoopy; 11-20-2001 at 03:51 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Replies: 12
    Last Post: 08-11-2008, 11:02 PM
  3. Copying 2-d arrays
    By Holtzy in forum C++ Programming
    Replies: 11
    Last Post: 03-14-2008, 03:44 PM
  4. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  5. Replies: 16
    Last Post: 10-29-2006, 05:04 AM