PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gmp_and> <gmp_abs
Last updated: Fri, 18 Jul 2008

view this page in

gmp_add

(PHP 4 >= 4.0.4, PHP 5)

gmp_add — Somma di numeri

Descrizione

resource gmp_add ( resource $a , resource $b )

Somma due numeri GMP. Il risultato, sarà un numero GMP che rappresenta la somma degli argomenti.



add a note add a note User Contributed Notes
gmp_add
charlie at oblivion dot cz
18-Feb-2007 01:54
gmp_* functions don't accept strings with a leading '+':
<?php
echo gmp_strval(gmp_init('+42'));      #0
echo gmp_strval(gmp_add('42', '+42')); #42
echo bcadd('+42', '+42');              #84
?>

gmp_and> <gmp_abs
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites