xref: /PHP-8.2/ext/bcmath/tests/bcsqrt.phpt (revision 56f90492)
1--TEST--
2bcsqrt() function
3--EXTENSIONS--
4bcmath
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9echo bcsqrt("9"),"\n";
10echo bcsqrt("9.444", 2),"\n";
11echo bcsqrt("1928372132132819737213", 5),"\n";
12echo bcsqrt("0.5", 5), "\n";
13?>
14--EXPECT--
153
163.07
1743913234134.28826
180.70710
19