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

Long exponential part causes an error #8

Open
silentvick opened this issue Jan 23, 2015 · 1 comment
Open

Long exponential part causes an error #8

silentvick opened this issue Jan 23, 2015 · 1 comment

Comments

@silentvick
Copy link
Contributor

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.

@silentvick silentvick changed the title Long exponential part cause an error Long exponential part causes an error Jan 23, 2015
@castarco
Copy link
Contributor

castarco commented Mar 8, 2015

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?

@castarco castarco added this to the 0.10 Release milestone Mar 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants