1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/ext/bcmath/bcmath.stub.php
Christoph M. Becker 84f2a984d4 Elevate warnings to Error Exceptions in ext/bcmath
`bcdiv()` and `bcmod()` throw DivisionByZeroError if the divisor is 0,
which matches the behavior of the `/` and `%` operators, and `bcsqrt()`
throws ValueError for negative operands.
2019-10-28 12:22:31 +01:00

23 lines
874 B
PHP

<?php
function bcadd(string $left_operand, string $right_operand, int $scale = UNKNOWN) : string {}
function bcsub(string $left_operand, string $right_operand, int $scale = UNKNOWN) : string {}
function bcmul(string $left_operand, string $right_operand, int $scale = UNKNOWN) : string {}
function bcdiv(string $dividend, string $divisor, int $scale = UNKNOWN) : string {}
function bcmod(string $dividend, string $divisor, int $scale = UNKNOWN) : string {}
/** @return string|false */
function bcpowmod(string $base, string $exponent, string $modulus, int $scale = UNKNOWN) {}
function bcpow(string $base, string $exponent, int $scale = UNKNOWN) : string {}
function bcsqrt(string $operand, int $scale = UNKNOWN) : string {}
function bccomp(string $left_operand, string $right_operand, int $scale = UNKNOWN) : int {}
function bcscale(int $scale = UNKNOWN) : int {}