Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12050

Better output for double variables / Allow custom format

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.2.0-beta1
    • Qt Creator 3.1.0-rc1
    • Debugger
    • None
    • Windows 7 64bit, MinGW GDB (but CDB is affected too)

    Description

      While a float variable is shown as 1.23456E+010 in the "Locals & Expessions" windows, a double variable with the same value is shown as 12345600000.

      Expected:

      • large double values should be shown in exponential format too

      Bonus:

      • provide the possibility to format a float/double value according the users needs
        • number of digits shown
        • format 'f' or 'e'
        • Bonus++ for a format relating to SI exponential units (i.e. the best fitting format ..., 10E-6, 10E-3, 10E0, 10E3, 10E6, 10E9, ...)

      Attachments

        1. custommenu.png
          custommenu.png
          39 kB
        2. debug_float_double.png
          debug_float_double.png
          125 kB
        3. debug_float_double.txt
          25 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes