Overview
Defines that precision (number of digits for integer or number of digits before '.' for decimal) of field value must be in range definied by options.
Attributes
name |
type |
required |
default value |
description |
---|---|---|---|---|
min |
integer |
no |
none |
Minimum value. |
is |
integer |
no |
none |
Exact value. |
max |
integer |
no |
none |
Maximum value. |
message |
string |
no |
none |
Message that will be displayed in case of error. |
Example
<validatesPrecision min="1" max="3" message="error.invalid.age" /> <validatesPrecision is="5" message="error.invalid.invoice.number" />