Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

gmp_neg

(PHP 4 >= 4.0.4, PHP 5)

gmp_neg -- Negate number

Description

resource gmp_neg ( resource a)

Returns -a.

Example 1. gmp_neg() example

<?php
$neg1
= gmp_neg("1");
echo
gmp_strval($neg1) . "\n";
$neg2 = gmp_neg("-1");
echo
gmp_strval($neg2) . "\n";
?>

The printout of the above program will be:

-1
1


Copyright © 2001-2004 The PHP Group
All rights reserved.

     Secured Loans | Mortgages | The eBay Song | Online Loans | Personal Loans
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp