Warning: file_put_contents(): Only -1 of 47 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
bcscale PodrÄ™cznik PHP Poprzedni NastÄ™pny (PHP 3, 4, 5) bcscale --  Ustala domyÅ›lnÄ… precyzjÄ™ obliczeÅ„ BCMath Opis bool ( int precyzja ) Za pomocÄ… tej funkcji ustala siÄ™ warto...
Forum und email
bcscale

bcscale

(PHP 3, PHP 4, PHP 5)

bcscale --  Ustala domyÅ›lnÄ… precyzjÄ™ obliczeÅ„ BCMath

Opis

bool bcscale ( int precyzja )

Za pomocą tej funkcji ustala się domyślną wartość argumentu precyzja dla wszystkich wywołań funkcji BCMath, w których argument ten nie jest jawnie podany. Zwraca TRUE w przypadku sukcesu, FALSE w przypadku porażki.

Przykłady

Przykład 1. bcscale() przykład

<?php
    
// domyślna precyzja : 3
bcscale(3);
echo
bcdiv('105', '6.55957'); // 16.007
    
// to jest to samo bez bcscale()
echo bcdiv('105', '6.55957', 3); // 16.007

?>