[kst] [Bug 367628] New: Add option to round the display of numbers in a text box

Ben Lewis via KDE Bugzilla bugzilla_noreply at kde.org
Sun Aug 21 05:54:27 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=367628

            Bug ID: 367628
           Summary: Add option to round the display of numbers in a text
                    box
           Product: kst
           Version: 2.0.8
          Platform: unspecified
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: equations
          Assignee: kst at kde.org
          Reporter: benlewis003 at gmail.com

I would like the ability to round the display of numbers in a text box. For
example:

INPUT
--------
[GYRO1:Mean(X4)]
[=ROUND([GYRO1:Mean(X4)],0)]
[=ROUND([GYRO1:Mean(X4)],1)]
[=ROUND([GYRO1:Mean(X4)],-1)]
[=ROUND([GYRO1:Mean(X4)],-4)]

OUTPUT
-----------
1234.567
1235
1234.6
1230
0

I'm not sure what the appropriate output to [=ROUND([GYRO1:Mean(X4)],5)] is?
Should it be 1234.567 OR 1234.56700?

Alternatively, the LaTeX library /nprounddigits could be implemented. For
example:

INPUT
--------
[GYRO1:Mean(X4)]
\nprounddigits{1}
[GYRO1:Mean(X4)]

OUTPUT
------------
1234.567
1234.6


Reproducible: Didn't try

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kst mailing list