Results 1 to 2 of 2

Thread: using PI

  1. #1
    Join Date
    Jun 2008
    Posts
    23
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Windows

    Question using PI

    pardon me everyone, i have a silly question.

    if i want to use pi in calculations, do I put

    #include <math.h>
    or
    #include "math.h"
    ?

    and do I need to check if there is actually a math.h in the program I am using?

  2. #2
    Join Date
    Jun 2008
    Posts
    23
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: using PI

    oops. i found out the problem. my math.h actually calls it M_PI. problem solved!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.