Coder-Spirit / php-bignumbers

A robust library to handle immutable big numbers inside PHP applications
MIT License
131 stars 29 forks source link

Use DC::one() in DC::e() to ensure DC::$ONE is initialized #62

Closed tzhuan closed 6 years ago

tzhuan commented 6 years ago

DecimalConstant::e() may be called while DecimalConstant::$ONE has not been initialized yet. Use DecimalConstant::one() to avoid the error.