Skip to content

[Bug]: foating-point precision in Insights metrics #3

Description

@RaviRu11d

Bug Description

In insights -> Overview [Mood over time], [Average urge intensity] have long decimal values e.g: 4.333333333333333.

Steps to Reproduce

*wipe all data

  • created three tracks with distress [5], [7], [5]
  • check the insights
  • check the graph values in both [Mood over time], [Average urge intensity]
Image

Expected Behavior

Round mood and average urge values to 1 decimal place at the service layer

instead of 4.333333333 it should have been 4.3 instead.

I have made a PR for a fix, if you can check it. Also it is my first PR :) Please check!

Platform

Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions