OverviewThis function group provides a basic set of functions for performing mathematical computations, as well as a set of named constants providing useful values. These functions are part of the standard function set built into PHP, and can only be disabled by either modifying the source code or by using the disable_functions directive in php.ini. Named constantsPHP provides the following named constants. Not all constants are available in all versions of PHP, and only M_PI is available in any version of PHP 3.
NotesThese functions are dependent upon the underlying system limits when working with numbers. For instance, this means that if your system supports 32bit integers, you will not be able to work with integers larger than 2147483647 or smaller than 2147483647 (PHP supports only signed integers). Similarly, floatingpoint precision will be limited to whatever the system supports. In most cases this is a 64bit value. If you require greater precision or larger/smaller numbers, please check out the Arbitrary Precision (BC) Mathematics functions.
PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing
(Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch).
This material may be distributed only subject to the terms and conditions set forth
in the Open Publication License, v1.0 or later (the latest version is presently available at
http://www.opencontent.org/openpub/).
The authors of this book have elected not to choose any options under the OPL. This online book was obtained
from http://www.fooassociates.com/phpfer/
and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4
for the most part. The information is provided on an asis basis, and no warranty or fitness is implied. All
persons and entities shall have neither liability nor responsibility to any person or entity with respect to
any loss or damage arising from the information contained in this book.
