Significant Figure Control on Variables and Widgets

Hello!

A feature that would be really great to see would be more robust control of significant figures on numeric entries and variables.

Currently, the “maximum decimal places” field on numeric entries inhibits widget entries from having values that exceed the configured limit, but does not provide any configurable rounding or minimum entry enforcement.

For example, entering the following values (with maximum decimals set to 2) results in the variable being changed to:

  • 2.00 → 2
  • 2.655 → 2.65
  • 2.651 → 2.65
  • 2.6599999999999999999999 → 2.65

Because of this, the numeric entry field usability is extremely limited, in almost all cases meaning a string entry must be used instead so that entry sig-figs are enforced, and then typecast to numeric for calculation purposes.

If the numeric entry widget was updated to allow for:
-maximum significant figures with selectable rounding (always down, always up, truncate, standard, etc.)
-minimum significant figures (allow for the validation to error if the minimum is not met, or to auto-populate trailing 0s)

And if the same features were applied to numeric type variables (meaning variables that are not in entry widgets can also have this enforcement configured or turned off) it would make this datatype significantly more usable, and diminish the need to constantly type cast.

I did see other posts like this one suggest this type of feature:

But I wanted to also specify the value in applying this configuration on the variable level as well.

Thank you!

Hi @bklempa !

Thank you for providing such a detailed write-up!

As mentioned in Decimal Place Formatting Issue, Tulip is targeting enhancements related to this topic to provide customers more control over enforcing number formats to be delivered in a future release, with more detail to come soon.

We’d be interested in some of the use cases you mention and better understanding your perspective and need here - would you be open to a quick call with our Product Team to discuss in more detail?

2 Likes

Hi Beth, happy new year!

Thanks as always for the reply. Apologies that I am just getting back to you now, I had went out on vacation for a couple weeks for the holidays.

Absolutely, I’d love to follow up with the product team to discuss this item further.

Feel free to reach out to me directly for meetings here: bklempa@zaether.com.

I also have regular calls with @SImon42 so it may be worthwhile to include him.

Thanks again,
Brendan

2 Likes