Skip to content

Fix casting to int in SLO-Generic

The SLO generics needs integer values. But in some cases converting to int does not work correctly.

For example, the value: "3970.00000000005" cannot be cast to an integer and the evaluation fails. In this case it is necessary to cast first to a float and then to an integer.

This solution is based on this comment and this comment.

Edited by Benedikt Wetzel

Merge request reports