addFloat

Add a float to the array to be matched. Because floating-point numbers are affected by precision, so abs(value - realValue) < 1e-6 will match successfully.

向待匹配数组中添加一个已知的浮点型。由于浮点数受到精度影响,所以 abs(value - realValue) < 1e-6 时会匹配成功。

Return

AnnotationEncodeArrayMatcher

Parameters

value

float / 浮点型