Skip to content

Releases: josecelano/php-complex

Fix "loss of data ..." error in Decimal

17 Apr 16:44
Compare
Choose a tag to compare

Using default precision for Decimal (28) we get an error is the string represents a number with higher precision.

Error: Loss of data on string conversion in ... on line 1

So we need to truncate the string before instantiating the Decimal object.

Operation: multiply

11 Apr 15:28
Compare
Choose a tag to compare

Operations: pow and add

09 Apr 21:23
Compare
Choose a tag to compare

Basic complex operations needed for Mandelbrot formula:

  • pow
  • add