Description
Hi,
When invoking the client's intVariation for a flag with a double variation returned value, the returned value's fractional part is being rounded to zero.
This is consistent with the documentation of intVariation method:
intVariation inside the 'LDClient' class.
We , as clients would like to be able to detect such case , as it can cause bugs.
We have not found any way to have this situation detected easily using the SDK.
It would be helpful if we could detect this case by inspecting the EvaluationReason from the EvaluationDetail instance that can be retrieved.
Example:
Defined a number flag with two variations:
42.5 and 43.5
Whenever the , for example, the first variation is being returned, using 'intVariation', the returned value is 42.
Thanks,
Much appreciated.