Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gmp(3) [php man page]

GMP(3)									 1								    GMP(3)

The GMP class

INTRODUCTION
A GMP number. These objects support overloaded arithmetic, bitwise and comparison operators. Note No object oriented interface is provided to manipulate GMP objects. Please use the procedural GMP API. GMP GMPSerializable PHP Documentation Group GMP(3)

Check Out this Related Man Page

GMP_DIV_R(3)								 1							      GMP_DIV_R(3)

gmp_div_r - Remainder of the division of numbers

SYNOPSIS
GMP gmp_div_r (GMP $n, GMP $d, [int $round = GMP_ROUND_ZERO]) DESCRIPTION
Calculates remainder of the integer division of $n by $d. The remainder has the sign of the $n argument, if not zero. PARAMETERS
o $n - The number being divided. 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 $d - The number that $n is being divided by. 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 $round - See the gmp_div_q(3) function for description of the $round argument. RETURN VALUES
The remainder, as a GMP number. EXAMPLES
Example #1 gmp_div_r(3) example <?php $div = gmp_div_r("105", "20"); echo gmp_strval($div) . " "; ?> The above example will output: 5 SEE ALSO
gmp_div_q(3), gmp_div_qr(3). PHP Documentation Group GMP_DIV_R(3)
Man Page

4 More Discussions You Might Find Interesting

1. HP-UX

GMP multi precision math library

Hello all, I'm having trouble building the GNU Multi Precision (GMP 4.1.3) on the HP Intel Itanium 2 HP-UX 11i I'm hoping someone out there has had some experience building GMP on this platform. After running the ./configure and doing a make I get an error saying: `.rodata` is not a section ... (3 Replies)
Discussion started by: vyl
3 Replies

2. Solaris

Error- ld.so.1: expr: fatal: libgmp.so.3: open failed:No such file or directory

Hi Friends I have a compiler(Sun Forte,I believe) running in my Solaris 9 box. since y'day my development team is finding this error when they compile: ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory I ran a search for this file and found it in one of my file... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

3. Programming

Library linking with GMP

I am trying to set up the gnu multiple precision arithmetic library for some c++ programming I have to do. I am using a system with mac osx 10.6.3 and do NOT have root user access. I'm trying to use gmp 5.0.1. Since I don't have root user access, I had to install to a different directory Thus... (3 Replies)
Discussion started by: bluejayek
3 Replies

4. UNIX for Advanced & Expert Users

Installing recent version of gmp

I want to install a recent version of gmp on Fedora. Tried to use yum # yum list | grep gmp gmp.i686 4.3.1-6.fc13 @fedora gmp.x86_64 4.3.1-6.fc13 @fedora gmp-devel.x86_64 ... (3 Replies)
Discussion started by: kristinu
3 Replies