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

bcsqrt

(PHP 3, PHP 4 , PHP 5)

bcsqrt --  Get the square root of an arbitrary precision number

Description

string bcsqrt ( string operand [, int scale])

Return the square root of the operand. The optional scale parameter sets the number of digits after the decimal place in the result.

Example 1. bcsqrt() example

<?php

echo bcsqrt(2, 3); // 1.414

?>

See also bcpow().



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

     Mortgages | Debt Help | Free Ringtones | Loans | Apply for a Credit Card
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp