Skip to content

large powers "underflow" to incorrect answers #115

@stevengj

Description

@stevengj

You seem to be hitting some negative exponent limit and silently giving the wrong answer:

julia> (dec"0.1") .^ (10 .^ (1:10))
10-element Vector{Decimal}:
 1E-10
 1E-100
 1E-1000
 1E-10000
 1E-100000
 1E-1000000
 0E-1000026
 0E-1000026
 0E-1000026
 0E-1000026

Suggestion: underflow to 0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions