Skip to content

Releases: josecelano/php-complex

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

Choose a tag to compare

@josecelano josecelano released this 17 Apr 16:44

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

Choose a tag to compare

@josecelano josecelano released this 11 Apr 15:28

Operations: pow and add

Choose a tag to compare

@josecelano josecelano released this 09 Apr 21:23

Basic complex operations needed for Mandelbrot formula:

  • pow
  • add