Results 1 to 2 of 2

Thread: Get precision(no.of digits after decimal point) from System settings.

  1. #1
    Join Date
    Mar 2010
    Posts
    11
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Get precision(no.of digits after decimal point) from System settings.

    Hi all,

    I want to get the precision(no.of digits after decimal point) specified for decimal numbers from System settings. I am using windows and I have set the precision digits by going to Region and Language->Additional settings(Inside Formats tab) -> No.of digits after decimal(Inside Numbers tab). But I dont see any functions which returns the precision inside QLocale. I dont know whether there is some other way to get the precision. Thanks in advance.

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

    Default Re: Get precision(no.of digits after decimal point) from System settings.

    Maybe some WinAPI call can do that?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. All digits of float to QString
    By timmu in forum Qt Programming
    Replies: 1
    Last Post: 4th January 2012, 07:20
  2. Replies: 1
    Last Post: 3rd December 2009, 14:23
  3. setNum() digits question
    By tommy in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2008, 15:19
  4. coordinal significant digits
    By nitriles in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2007, 15:54
  5. QPainter clipping with precision behind the decimal point
    By Pieter from Belgium in forum Qt Programming
    Replies: 0
    Last Post: 14th March 2007, 13:30

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.