[Feature Request] decimal points for numeric
See original GitHub issueHey! great plugin! congrats!
It would be great to have an option for validating the decimal points for numeric data
eg: numeric:{decimals}
<input type="text" data-rules="numeric">
// 123 valid, 12.34 invalid
<input type="text" data-rules="numeric:3">
// 123 valid, 12.34 valid, 147.527 valid, 13.2368 invalid
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Fix/Feature Request for Formatting with Decimal Points
If you include a decimal point in the format, it will always be rendered, even for whole numbers. For example, #0.# will render...
Read more >Feature Request: Decimal points in the quantity re...
Feature Request : Decimal points in the quantity received in a purchase order (Square for Retail). We are a fabric shop.
Read more >Decimal field type - Feature Requests - Easy Layouts
You can use a text field and set the filter to 'float' (which is the same as decimal) - but it won't format...
Read more >Feature request: set number of decimal places for CSV export
If I export the screener data as CSV, there are many more decimal places. 14.50% then becomes 14.50150481%. Please integrate a dialog before...
Read more >have AMAZON.Number accept decimal points
Have AMAZON.Number accept decimal points in user verbal input. Right now, it handles 'minus' or negative numbers, but not when there is a ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
extend(“decimal”, { …decimal, message: “This field only contain decimal”, }); vee-validate.esm.js?7bb1:329 Uncaught Error: Extension Error: The validator ‘decimal’ must be a function or have a ‘validate’ method. DOES NOT SEEM TO WORK “vee-validate”: “^3.3.0”, I don’t see decimal in the list export { alpha_dash, alpha_num, alpha_spaces, alpha, between, confirmed, digits, dimensions, email, ext, image, oneOf, integer, length, is_not, is, max, max_value, mimes, min, min_value, excluded, numeric, regex, required, required_if, size };
@RicardoEmpre added as
decimal:{decimals}
https://logaretm.github.io/vee-validate/rules.html#rule-decimal