|
MongoDB\BSON\Decimal128::__constructConstruct a new Decimal128 Beschreibung
final public MongoDB\BSON\Decimal128::__construct
([ string
$value
] )
Parameter-Liste
Fehler/Exceptions
BeispieleBeispiel #1 MongoDB\BSON\Decimal128::__construct example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
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"
}
Siehe auch |