W3cubDocs

/PHP

BcMath\Number::__toString

(PHP 8 >= 8.4.0)

BcMath\Number::__toStringConverts BcMath\Number to string

Description

public BcMath\Number::__toString(): string

Converts BcMath\Number to string.

Parameters

This function has no parameters.

Return Values

Returns BcMath\Number::value as a string.

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/bcmath-number.tostring.php