View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003925 | NoesisGUI | Studio | public | 2025-02-03 16:28 | 2025-02-04 20:11 |
| Reporter | dstewart | Assigned To | dfranjic | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | Studio_Alpha | ||||
| Target Version | Studio_Alpha | Fixed in Version | Studio_Alpha | ||
| Summary | 0003925: 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. 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. 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 | ||||
| Platform | Any | ||||
|
Perhaps we can add a Format ("StringFormat") option to configure how the float number should look, for example:
|
|
|
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. |
|
| 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 |