Decimal128
final class Decimal128 implements Type, Decimal128Interface, Serializable, JsonSerializable (View source)
BSON type for the Decimal128 floating-point format, which supports numbers with up to 34 decimal digits (i.e. significant digits) and an exponent range of −6143 to +6144.
Methods
__construct(string $value = '')
Construct a new Decimal128
string
__toString()
Returns the string representation of this Decimal128
static
__set_state(array $properties)
No description
string|null
serialize()
Serialize a Decimal128
void
unserialize(string $data)
Unserialize a Decimal128
mixed
jsonSerialize()
Returns a representation that can be converted to JSON
Details
final
__construct(string $value = '')
Construct a new Decimal128
final string
__toString()
Returns the string representation of this Decimal128
static
__set_state(array $properties)
No description
final string|null
serialize()
Since: 1.2.0
Serialize a Decimal128
final void
unserialize(string $data)
Since: 1.2.0
Unserialize a Decimal128
final mixed
jsonSerialize()
Since: 1.2.0
Returns a representation that can be converted to JSON