gmp_sub

Subtract numbers

&reftitle.description; `GMP` `gmp_sub` ``GMP``int``string```num1` ``GMP``int``string```num2`

Subtracts `num2` from `num1` and returns the result.

&reftitle.parameters;

`num1`

- The number being subtracted from.

  &gmp.parameter;

`num2`

- The number subtracted from `num1`.

  &gmp.parameter;
&reftitle.returnvalues;

&gmp.return;

&reftitle.examples;

### `gmp_sub` example

    <?php
    $sub = gmp_sub("281474976710656", "4294967296"); // 2^48 - 2^32
    echo gmp_strval($sub) . "\n";
    ?>

&example.outputs;

    281470681743360