No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

gmp_mod

(PHP 4 >= 4.0.4, PHP 5, PHP 7)

gmp_modModulo operation

Description

gmp_mod ( GMP $n , GMP $d ) : GMP

Calculates n modulo d. The result is always non-negative, the sign of d is ignored.

PHP: gmp_mod - Manual Home of Manuel PHP  Contents Haut

Parameters

n

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.

d

The modulo that is being evaluated.

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.

PHP: gmp_mod - Manual Home of Manuel PHP  Contents Haut

Return Values

A GMP number resource in PHP 5.5 and earlier, or a GMP object in PHP 5.6 and later.

PHP: gmp_mod - Manual Home of Manuel PHP  Contents Haut

Examples

Example #1 gmp_mod() example

<?php
$mod 
gmp_mod("8""3");
echo 
gmp_strval($mod) . "\n";
?>

The above example will output:

2

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph