Skip to content
Snippets Groups Projects

Fix casting to int in SLO-Generic

Merged Benedikt Wetzel requested to merge wetzel/spesb:bugfix-to-int-cast-in-slo-gneric into master

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading