little problem here... but I don't understand why

This is a discussion on little problem here... but I don't understand why within the Windows Programming forums, part of the Platform Specific Boards category; Power = 1 / OrigBase; where Power is a long double OrigBase is an integer Why the value of Power ...

  1. #1
    Registered User V1P3R V3N0M's Avatar
    Join Date
    Jan 2003
    Posts
    22

    little problem here... but I don't understand why

    Power = 1 / OrigBase;

    where
    Power is a long double
    OrigBase is an integer

    Why the value of Power is always 0, whatever the OrigBase value is???

    I mean 1 / 3 != 0!!!!!


    Thx a lot
    V1P3R V3N0M
    v1p3r_v3n0m@yahoo.com

  2. #2
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    i think origbase needs to be float or double as well

  3. #3
    Registered User V1P3R V3N0M's Avatar
    Join Date
    Jan 2003
    Posts
    22
    haha..

    :S

    that was the problem...
    thx a lot!

    VV

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 05:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 09:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 07:54 PM

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