Skip to content

Commit

Permalink
Update precision description in schema and README
Browse files Browse the repository at this point in the history
Clarified precision rules in both full schema and README file by adding a note about inclusion of zeroes in minimum and maximum precision calculations. This will ensure the users understand this particular aspect when dealing with precision logic.
  • Loading branch information
Denis Smet committed Mar 13, 2024
1 parent 436bb47 commit 1ec2368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ columns:
min: 10 # Can be integer or float, negative and positive
max: 100.50 # Can be integer or float, negative and positive
precision: 3 # Strict(!) number of digits after the decimal point
min_precision: 2 # Min number of digits after the decimal point
max_precision: 4 # Max number of digits after the decimal point
min_precision: 2 # Min number of digits after the decimal point (with zeros)
max_precision: 4 # Max number of digits after the decimal point (with zeros)

# Dates
date_format: Y-m-d # See: https://www.php.net/manual/en/datetime.format.php
Expand Down
4 changes: 2 additions & 2 deletions schema-examples/full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ columns:
min: 10 # Can be integer or float, negative and positive
max: 100.50 # Can be integer or float, negative and positive
precision: 3 # Strict(!) number of digits after the decimal point
min_precision: 2 # Min number of digits after the decimal point
max_precision: 4 # Max number of digits after the decimal point
min_precision: 2 # Min number of digits after the decimal point (with zeros)
max_precision: 4 # Max number of digits after the decimal point (with zeros)

# Dates
date_format: Y-m-d # See: https://www.php.net/manual/en/datetime.format.php
Expand Down

0 comments on commit 1ec2368

Please sign in to comment.