Skip to content

Fix test generation of numbers #10

Description

@gprabowski

Currently in number_test_context.cuh:169 setprecision(3) is used for all number types

effectively if using numbers bigger than 999 this cuts them to 3 significant numbers, not (as probably intended) 3 significant numbers after the dot. This fact is not mentioned anywhere and we couldn't understand why our rounding functor tests were failing without this knowledge.

https://en.cppreference.com/w/cpp/io/manip/setprecision

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions