| Summary: | Add option to round the display of numbers in a text box | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Ben Lewis <benlewis003> |
| Component: | equations | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | netterfield |
| Priority: | NOR | ||
| Version First Reported In: | 2.0.8 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Fixed for a while:
eg, [GYRO1:Mean(X4)]{%0.1f}
See the Help button in the label dialog.
|
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