vue-formulate icon indicating copy to clipboard operation
vue-formulate copied to clipboard

Feature/ number validation is now available in type integer and float

Open Junsang-Mun opened this issue 2 years ago • 4 comments

Add feature #537

This feature can be used by adding second argument integer and float.

Junsang-Mun avatar Apr 13 '22 02:04 Junsang-Mun

Thanks for the PR. what about the edge case:

const num = "1.0"
1 % num === 0

Technically its still a float, but would evaluate as false

justin-schroeder avatar Apr 13 '22 12:04 justin-schroeder

Thanks for let me know the edge cases Justin! I wrote a few line of code which covers edge case.

Now 2.0 or 342.000 or something like that is treated as both integer and float.

Junsang-Mun avatar Apr 13 '22 13:04 Junsang-Mun

Any updates on this ? It would be a very nice addition and expected as well !

TudorPetrariu avatar Mar 10 '23 10:03 TudorPetrariu

Actually I don't know why this feature isn't merged or rejected, but just... just here. @justin-schroeder is there any updates?

Junsang-Mun avatar Mar 10 '23 10:03 Junsang-Mun