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

bcscale

(PHP 3, PHP 4 , PHP 5)

bcscale --  Set default scale parameter for all bc math functions

Description

bool bcscale ( int scale)

This function sets the default scale parameter for all subsequent bc math functions that do not explicitly specify a scale parameter. Returns TRUE on success or FALSE on failure.

Example 1. bcscale() example

<?php

// default scale : 3
bcscale(3);
echo
bcdiv(105, 6.55957); // 16.007

// this is the same without bcscale()
echo bcdiv(105, 6.55957, 3); // 16.007

?>



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

     Life Insurance | Car Insurance | Loans | Loans | MPAA
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp