gmp_add(3) php man page | unix.com

Man Page: gmp_add

Operating Environment: php

Section: 3

GMP_ADD(3)								 1								GMP_ADD(3)

gmp_add - Add numbers

SYNOPSIS
GMP gmp_add (GMP $a, GMP $b)
DESCRIPTION
Add two numbers.
PARAMETERS
o $a - A number that will be added. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number. o $b - A number that will be added. Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
RETURN VALUES
A GMP number representing the sum of the arguments.
EXAMPLES
Example #1 gmp_add(3) example <?php $sum = gmp_add("123456789012345", "76543210987655"); echo gmp_strval($sum) . " "; ?> The above example will output: 200000000000000 PHP Documentation Group GMP_ADD(3)
Related Man Pages
token_get_all(3) - php
gmp_div_q(3) - php
gmp_gcdext(3) - php
gmp_random(3) - php
pow(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!