Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use high precision float in Qt creator ?
Forum Updated to NodeBB v4.3 + New Features

How to use high precision float in Qt creator ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 375 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FloatingPoint
    wrote on last edited by FloatingPoint
    #1

    I wish to use arbitrary (or at least 32 bytes) floating point data type. But double is only 8 bytes. What's the simplest library that provide arbitrary precision in Qt Creator? I have tried looking for some libraries (like GMP), but they all requires lengthy manual installation process :
    Edit: I use windows

    Thank you for reading

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by
      #2

      If you want arbitrary precision you will need an external library or write one.

      Boost has a nice library for this as well. I would recommend Boost as it contains a lot more than this library. So once you go through the effort of getting it installed you get a lot more bang for the buck.

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      3
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Beside the good point of @fcarney, Qt Creator is just an IDE, you don't install anything in it or for it. If you are on linux, just use the package manager of your distribution to install the development package matching the library you want to use to develop your application.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved