LinuxGuruz
Toll Free Numbers
Custom Search
MAIN MENU
Main Page
IT Jobs
IPTABLES
Linux Forum
HTML Forum
PHP Forum
MySQL Forum
Linux FAQ
Linux Articles
About Us
Privacy Policy

ADD TO FAVORITES


MARC

Mailing list ARChives
- Search by -
 Subjects
 Authors
 Bodies





FOLDOC

Computing Dictionary






Cheap UK Web Hosting Provider

Cheap Dedicated Servers UK

Cheap Linux VPS Hosting UK

Cheap Cloud Hosting UK



Icons
Icons


free brochure template
Free Brochure Template

Web Hosting

Domain Names

Web Design

Reseller Hosting

Registro de Dominios

Reseller Hosting


Toll Free Number for $2.00/Month!!!

Toll Free Number for $2.00/Month!!!
PHP Arbitrary precision math functions (BCMATH)

Title:       PHP Arbitrary precision math functions (BCMATH)
Contributor: Randall Goguen (aka Ranman)
Last Update: Wednesday January 17 17:59 EDT 2001

PHP uses 32-bit signed longs for all integer math.

The signed range is from -2,147,483,648 to
 2,147,483,647. The unsigned range is 0 to 4,294,967,295.

bcmath functions allow you to perform math
operations on numbers of any size.

These functions are only available if PHP was configured with:

 --enable-bcmath

# Arbitrary precision mathematics functions.

string bcadd(string left_operand, string right_operand [, int scale])
  Returns the sum of two arbitrary precision numbers

string bccomp(string left_operand, string right_operand [, int scale])
  Compares two arbitrary precision numbers

string bcdiv(string left_operand, string right_operand [, int scale])
  Returns the quotient of two arbitrary precision numbers (division)

string bcmod(string left_operand, string right_operand)
  Returns the modulus of the two arbitrary precision operands

string bcmul(string left_operand, string right_operand [, int scale])
  Returns the multiplication of two arbitrary precision numbers

string bcpow(string x, string y [, int scale])
  Returns the value of an arbitrary precision number raised to the power of
 another

string bcscale(int scale)
  Sets default scale parameter for all bc math functions

string bcsqrt(string operand [, int scale])
  Returns the square root of an arbitray precision number

string bcsub(string left_operand, string right_operand [, int scale])
  Returns the difference between two arbitrary precision numbers



        Anyone who wishes to make additions or changes to this
PHP Tip email them to webmaster@linuxguruz.org

        This document is Copyright (c) 1999, 2000 by LinuxGuruz

Return to the LinuxGuruz PHP Tutorials Page
Return to the LinuxGuruz Main Page


www.PHP.net Search Engine


Restrict the search to:
Copyright © 1999, 2000 The PHP Development Team.
Submit a PHP Tutorial

Title:

Contributor:

IRC NICK: (optional)

E-Mail Address: (optional)

Tutorial:

Return to the LinuxGuruz PHP Tutorials Page
Return to the LinuxGuruz Main Page

RESOURCE LINKS
Linux
Apache
HTML
PHP
MySQL
PostgreSQL
Oracle
CGI
Perl
Java
C/C++
Bash
Tcl
Networking
Security
ISP
IRC
Xwindow
Laptop
Graphics
Hardware
Reference
Misc

Broadband


filing cabinet

  • Buy Batteries for Laptops and Cameras
  • Notebooks
  • Michael Fertik
  • Reputation Defender

  • XP Style Icons
    XP Style Icons


    Network Certification


    Network Security


    Wireless Networking


    Canadian
    Web Hosting in Canada


    Drummer Portal


    Mending Media

    The Path Of
    Most Resistance


    Toll Free Number for $2.00/Month!!!

    Toll Free Number for $2.00/Month!!!


    Linux

    The Distributions





    Linux

    The Software





    Linux

    The News




    webmaster@linuxguruz.com
    Copyright © 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 and 2009 by LinuxGuruz