Thread: Header file for "fix" function ?

  1. #1
    Rex
    Guest

    Question Header file for "fix" function ?

    RE: Header file for "fix" function ?


    Hi All

    I am a C++ beginner.
    I need to know what header file to include when using "fix" function.

    I am writing a small program.
    I need to find the integer part of a number (34.6 --> 34).
    I know I need to use "fix" function.
    Example:
    MyNumber = Fix(99.2) ' Returns 99

    However I need to know the name of the Header file that I need to include in my program.

    All help appreciated.


    Cheers

    Rex

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    double MyDouble = 45.7387;
    int MyIntegerPart = (int)MyDouble;
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. error LNK2001: unresolved external symbol
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 07-12-2002, 08:45 PM