Skip to content

feat: add float_field() precision= parameter#412

Merged
rich-iannone merged 4 commits into
mainfrom
feat-float-field-precision
Jul 13, 2026
Merged

feat: add float_field() precision= parameter#412
rich-iannone merged 4 commits into
mainfrom
feat-float-field-precision

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

This PR introduces a new precision= parameter to FloatField and the float_field() factory. This allows generated float values to be rounded to a specified number of decimal places. It is useful for scenarios where full floating-point precision is not desired, such as in prices or scores.

Fixes: #410

@rich-iannone rich-iannone changed the title feat: float field precision= parameter feat: add float_field() precision= parameter Jul 13, 2026
@rich-iannone rich-iannone merged commit 28ee6a7 into main Jul 13, 2026
9 checks passed
@rich-iannone rich-iannone deleted the feat-float-field-precision branch July 13, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

float_field: add a precision option to round generated values

1 participant