Skip to content

Quickset Motor Speed using innacurate floating point math #6

Description

@JumpingPistachio

When adjusting the Quickset Motor Speed, the floating point math leaves inaccuracies, (i.e. 0.10 + 0.05 = 1.4999...), some worse than others.

Proposed Fix Idea

Either:
A. Do the math in non-normalized integer values (i.e. 10 + 5, instead of 0.10 + 0.05), and divide by 100
B. Do the math in normalized floating point values and round up.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions