View Issue Details

IDProjectCategoryView StatusLast Update
0003925NoesisGUIStudiopublic2025-02-04 20:11
Reporterdstewart Assigned Todfranjic  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product VersionStudio_Alpha 
Target VersionStudio_AlphaFixed in VersionStudio_Alpha 
Summary0003925: Studio Doesn't Offer A Way To Determine Decimal Places For Generated 'Number' Type Data
Description

Currently, in the 'Generate Sample Data' feature, when selecting a 'Number' type property, the results of the Generation result in numbers with many decimal places (I've seen up to 7 decimal places in some cases.)

Unfortunately, not being able to 'clamp' the numbers generated by the Generate Sample Data feature, means that they cannot be reliably used to drive UI functionality.
(Such as for example Template1 being displayed when the Data Value number is '1', or Template2 when the Data Value is '2')

To combat this, we should consider adding a new 'Max Decimal Places' Parameter for Number generation defaulting to '0', which allows a user to set the amount of decimal places the Generated Value should be allowed to present.
Leaving the default '0' in this field would guarantee that only Integers are generated, whereas '1' would guarantee that at most the number would have a single decimal place, etc...

In this model, even with a "Max Decimal Places" value of say, '3', the generator would still be capable in theory, of generating a "1.1" - which I think is a better approach than forcing exact decimal places for each number; this would just mean that what was generated was actually "1.100" (=1.1)

Steps To Reproduce

N/A

PlatformAny

Activities

sfernandez

sfernandez

2025-02-03 18:55

manager   ~0010292

Perhaps we can add a Format ("StringFormat") option to configure how the float number should look, for example:

  • F0: 0 decimals
  • F2: 2 decimals
  • #.000: 3 decimals filling with 0
    etc.1
jsantos

jsantos

2025-02-04 20:11

manager   ~0010328

Although the StringFormat idea was good in theory, it doesn't make in this case where we need to generate real numbers and not string representations.

I have added a new Decimals entry to the generator.

Issue History

Date Modified Username Field Change
2025-02-03 16:28 dstewart New Issue
2025-02-03 18:55 sfernandez Assigned To => dfranjic
2025-02-03 18:55 sfernandez Status new => assigned
2025-02-03 18:55 sfernandez Target Version => Studio_Alpha
2025-02-03 18:55 sfernandez Note Added: 0010292
2025-02-04 20:11 jsantos Note Added: 0010328
2025-02-04 20:11 jsantos Status assigned => resolved
2025-02-04 20:11 jsantos Resolution open => fixed
2025-02-04 20:11 jsantos Fixed in Version => Studio_Alpha