|
MongoDB\BSON\Decimal128::__constructConstruct a new Decimal128 Description
final public MongoDB\BSON\Decimal128::__construct(string
$value )
Parameters
Errors/Exceptions
ExamplesExample #1 MongoDB\BSON\Decimal128::__construct example
The above example will output something similar to: object(MongoDB\BSON\Decimal128)#1 (1) { ["dec"]=> string(9) "1234.5678" } object(MongoDB\BSON\Decimal128)#1 (1) { ["dec"]=> string(3) "NaN" } object(MongoDB\BSON\Decimal128)#1 (1) { ["dec"]=> string(8) "Infinity" } |