mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

see https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum Co-authored-by: Saki Takamachi <saki@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
/** @refcount 1 */
|
|
function bcadd(string $num1, string $num2, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcsub(string $num1, string $num2, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcmul(string $num1, string $num2, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcdiv(string $num1, string $num2, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcmod(string $num1, string $num2, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcpow(string $num, string $exponent, ?int $scale = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcsqrt(string $num, ?int $scale = null): string {}
|
|
|
|
function bccomp(string $num1, string $num2, ?int $scale = null): int {}
|
|
|
|
function bcscale(?int $scale = null): int {}
|
|
|
|
/** @refcount 1 */
|
|
function bcfloor(string $num): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcceil(string $num): string {}
|
|
|
|
/** @refcount 1 */
|
|
function bcround(string $num, int $precision = 0, RoundingMode $mode = RoundingMode::HalfAwayFromZero): string {}
|