Skip to content

Imprecise summation for Float32 #23

Open
@hsgg

Description

@hsgg

This package can have less precision than the standard sum() on julia-1.7.3. For example:

julia> using KahanSummation

julia> x = rand(Float32, 10_000_000) .+ 1f5;

julia> sum_kbn(x)
9.9479867f11

julia> sum(x)
1.00000504f12

Is this expected?

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