Comments (2)
Oh wait.. i just realized that "decimal" actually means it's just a base ten number. :')
What should I use if I want to make sure that my string '8.0'
is indeed a number? and not only that but also a floating number?
from valibot.
Oh wait.. i just realized that "decimal" actually means it's just a base ten number. :')
👍
What should I use if I want to make sure that my string
'8.0'
is indeed a number? and not only that but also a floating number?
At the moment I recommend using regex
or check
, but if you have a great name I am happy to add a new action to validate if a string is a valid number.
from valibot.
Related Issues (20)
- Questions on how to proceed HOT 4
- Custom (runtime) error message HOT 6
- Issue with enums HOT 5
- Date validation default error message HOT 7
- Suggestion to Use nil Instead of null_ for Primitive Value HOT 5
- Bi-directional encoding/decoding HOT 5
- TypeScript compile fails HOT 6
- (Re-)Add support for zods `.default` method HOT 5
- How to know if a custom error message was given? HOT 12
- Edge case bug with JSR version HOT 1
- Discord HOT 5
- [suggestion]: mimeType wildcard support HOT 2
- Missing TS warning in `pipe` method HOT 10
- Typescript: Incompatible Index Signatures HOT 1
- English translations are missing HOT 1
- Email validation not allowing specific letters (danish letters) HOT 3
- Valibot error on Vercel HOT 1
- omit doesn't work with objectWithRest HOT 9
- Minimum Viable Schema Protocol HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valibot.