Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Long exponential part causes an error #8

Open

Description

@silentvick

I noticed that there is no size check of exponential part. If I pass something like this:

1.33E+3333333333333333333333

It will cause "Allowed memory size exhausted" error.

Activity

  1. changed the title [-]Long exponential part cause an error[/-] [+]Long exponential part causes an error[/+] on Jan 23, 2015
  2. castarco commented on Mar 8, 2015

    @castarco
    Contributor

    Hello @silentvick , thanks for your bug report.

    That's true, the problem is related with the inner representation. We need to think a good way to decouple the inner representation from the Decimal object in order too allow numbers with really big exponents.

    The problem is that php-bignumbers is designed to offer good precision, and it's not trivial to decide the point where jump from fixed point to floating point representation.

    Do you have any suggestion?

  3. added this to the 0.10 Release milestone on Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions