mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
5359392717
Implementation for the "Adding bcround, bcfloor and bcceil to BCMath" RFC: https://wiki.php.net/rfc/adding_bcround_bcfloor_bcceil_to_bcmath * Separated round mode into separate header file Co-authored-by: Gina Peter Banyard <girgias@php.net>
41 lines
1.1 KiB
PHP
41 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, int $mode = PHP_ROUND_HALF_UP): string {}
|