Results 1 to 8 of 8

Thread: double precision or what?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: double precision or what?

    Quote Originally Posted by mickey View Post
    what do I have to do if I need that high precision in C++? nothing?
    Write a high-precision number class or use some library.

  2. #2
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: double precision or what?

    the problem isn't only that 3.00000000001 but others too. And with operations error is propagating (increase)...Any hints about library?
    thankks
    Regards

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: double precision or what?

    Quote Originally Posted by mickey View Post
    the problem isn't only that 3.00000000001 but others too. And with operations error is propagating (increase)...
    As long as it keeps under the number of significant digits you need, you have nothing to worry about.

    As for the lib, try this one: http://www.nongnu.org/hpalib

    Or this one: http://freshmeat.net/projects/ccmath/

    In any case, google is your friend.

Similar Threads

  1. QGraphicsScene Click / Double Click
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 04:32
  2. precision problem - Help pls
    By munna in forum General Programming
    Replies: 7
    Last Post: 26th May 2006, 04:00
  3. QSlider with double Heads..
    By moizahamedv in forum Qt Tools
    Replies: 5
    Last Post: 9th May 2006, 14:28
  4. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40
  5. Replies: 5
    Last Post: 12th January 2006, 15:40

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
  •  
Qt is a trademark of The Qt Company.