Skip to content

Finite precision problems #15

Description

@rafabap

In the stress testing model we have started to encounter problems due to finite precision, since we use double for the value of all contracts and as the unit of cash.

We run into problems whenever we perform comparisons, due to the accumulated errors from adding and subtracting quantities.

At the moment the most sensible solution would seem to be using int for the value of everything. Any better suggestions welcome!

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