Assert.IsAlmost¶
Name | - | Description | Default | Type |
---|---|---|---|---|
<input> |
The input can be of any number type or a sequence of such types. | Float Float2 Float3 Float4 Int Int2 Int3 Int4 Int8 Int16 [Any] |
||
<output> |
The output will be the input (passthrough). | Any |
||
Value |
The value to test against for almost equality. | none |
Float Float2 Float3 Float4 Int Int2 Int3 Int4 Int8 Int16 [Any] Var(Float Float2 Float3 Float4 Int Int2 Int3 Int4 Int8 Int16 [Any]) |
|
Abort |
If we should abort the process on failure. | false |
Bool |
|
Threshold |
The smallest difference to be considered equal. Should be greater than zero. | 1.19209e-07 |
Float Int |
This assertion is used to check whether the input is almost equal to a given value.
Details¶
For non-decimal values (e.g. Int
), :Epsilon
is ignored and this shard acts as Assert.Is
.
See also
Examples¶
1 2 3 4 5 6 7 8 9 10 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|