Skip to main content
Archived

Round to a number of significant digits

Related products:Integrations
  • January 12, 2018
  • 1 reply
  • 18 views

roland.martin
Contributor
Forum|alt.badge.img+11

Could the Attribute & CoordinateRounders possibly offer the chance to round to a number of significant digits? I'm currently doing it by calculating the length of the number before the decimal, but it would be nice to have this baked in.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

I use the scientific notation of the String Formatter for this. For example the format .2e will give you 3 significant digits.

By evaluating the attribute it will return to usual notation, but the significant digits will remain.