Skip to content

Refactor: Rational numbers #12

@jeblad

Description

@jeblad

Division often produce transcendental numbers, which truncated will show up as slight errors. If implemented as rational numbers that problem can be postponed, and then it will sometimes go away.

Only division of arbitrary real numbers will turn into a rational number, but further operation on those will stay as rational numbers.

A common example is 1/3 + 2/3 which is 0.99999… to some precision when done as real numbers, while rational numbers would give 3/3 which is 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions