Skip to content

combining typed arrays with decimal fraction #1

Closed
@wojdyr

Description

@wojdyr

What would you think about combining decimal fractions (tag 4) with typed arrays from this proposal?

In a similar way as a single number can be stored as a pair of exponent and mantissa:

5.6 -> {C4}(-1, 56)

an array of numbers could be expressed as, for example, a single exponent and an array of mantissas:

[1.2, 3.4, 5.6, 7.8, 9.0] -> {C4}(-1, [12, 34, 56, 78, 90])

Decimal fractions are not as popular as integers and floating point numbers, which makes it not as important, but I think it'd be a neat extension.

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