Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Lösung

Verwenden Sie eine der Bibliotheken BCMath oder GMP.

Wenn Sie BCMath benutzen:

$sum = bcadd('1234567812345678', '8765432187654321');

// $sum ist jetzt der String '9999999999999999'
print $sum;

Und bei GMP:

$sum = gmp_add('1234567812345678', '8765432187654321');

// $sum ist nun eine GMP-Ressource und kein String;
// konvertieren Sie sie mit gmp_strval()
print gmp_strval($sum);

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial