Skip to content

Tidy up subnormal handling #42

@joshcarp

Description

@joshcarp

Currently numbers are "normalised" so that there are trailing zeros,
for example 1 is stored as a significand 100000000000000 with an exponent of -15

Generally outputs are normalised from ParseDecimal and arithmetic functions.
Some problems are:

  1. Errors may arise when Decimal encodings are parsed in using methods other then strings
  2. Arithmetic functions currently have a remove trailing zeros function to avoid integer overflow
    If Decimal64s are stored without trailing zeros arithmetic functions may be faster

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