array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.bcscale.php', 1 => 'bcscale', ), 'up' => array ( 0 => 'ref.bc.php', 1 => 'Funciones de BC Math', ), 'prev' => array ( 0 => 'function.bcpowmod.php', 1 => 'bcpowmod', ), 'next' => array ( 0 => 'function.bcsqrt.php', 1 => 'bcsqrt', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/bc/functions/bcscale.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
bcscale — Establece los parametros de scale por defecto para todas las funciones matemáticas de bc
Establece los parametros de scale para todas las subsiguientes llamadas a funciones matemáticas bc, donde no se especifica el parametro de scale.
scale
El factor scale.
Ejemplo #1 Ejemplo bcscale()
<?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
?>