async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

type:"float",值12.00时会校验失败,12.01校验通过

Open linjicong opened this issue 6 years ago • 2 comments

linjicong avatar May 11 '18 09:05 linjicong

https://github.com/yiminghe/async-validator/blob/master/src/rule/type.js#L20

I'm curious as to why the float validator requires the number to not be an integer.

baohouse avatar Aug 03 '18 21:08 baohouse

你好,开发者。type:float 校验时,input的输入数字typeof "1.233" true。这个时候float不通过。

BugDongDong avatar May 10 '21 02:05 BugDongDong