mirror of
https://github.com/php/php-src.git
synced 2026-03-28 02:02:32 +01:00
`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.
23 lines
874 B
PHP
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 {}
|