REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.40 KB
Close
/proc/thread-self/root/home/getspomw/itechservicellc.com/vendor/brick/math/src/Internal/Calculator/BcMathCalculator.php
Text
Base64
<?php declare(strict_types=1); namespace Brick\Math\Internal\Calculator; use Brick\Math\Internal\Calculator; use Override; /** * Calculator implementation built around the bcmath library. * * @internal * * @psalm-immutable */ class BcMathCalculator extends Calculator { #[Override] public function add(string $a, string $b) : string { return \bcadd($a, $b, 0); } #[Override] public function sub(string $a, string $b) : string { return \bcsub($a, $b, 0); } #[Override] public function mul(string $a, string $b) : string { return \bcmul($a, $b, 0); } #[Override] public function divQ(string $a, string $b) : string { return \bcdiv($a, $b, 0); } #[Override] public function divR(string $a, string $b) : string { return \bcmod($a, $b, 0); } #[Override] public function divQR(string $a, string $b) : array { $q = \bcdiv($a, $b, 0); $r = \bcmod($a, $b, 0); return [$q, $r]; } #[Override] public function pow(string $a, int $e) : string { return \bcpow($a, (string) $e, 0); } #[Override] public function modPow(string $base, string $exp, string $mod) : string { return \bcpowmod($base, $exp, $mod, 0); } #[Override] public function sqrt(string $n) : string { return \bcsqrt($n, 0); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
BcMathCalculator.php
1.40 KB
lrw-r--r--
2025-10-28 20:21:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GmpCalculator.php
2.53 KB
lrw-r--r--
2025-10-28 20:21:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NativeCalculator.php
13.98 KB
lrw-r--r--
2025-10-28 20:21:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).