Skip to content

Exponent bits max and min #2

@mmoult

Description

@mmoult

Currently, the exponent cannot have fewer than 1 bit. That is necessary. Right now, the down button is still pressable if the exponent is at 1, but it just won't do anything. We should make it more responsive and disable the down button if exponent is 1.

We should have a max exponent size, but I don't think we do. In fromDecimal, we use ints to calculate the exponent bits. Int max is 2,147,483,647, which is 2^31. That means that we shouldn't have more than 30 exponent bits allowable (which should also disable the up exponent button in addition to preventing a higher number).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions