|
The MongoDB\BSON\Decimal128 classIntroductionBSON 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.
Unlike the double BSON type (i.e. float in PHP), which only
stores an approximation of the decimal values, the decimal data type stores
the exact value. For example,
Class synopsisMongoDB\BSON\Decimal128
final
class MongoDB\BSON\Decimal128
implements
MongoDB\BSON\Decimal128Interface, MongoDB\BSON\Type, Serializable, JsonSerializable, Stringable {
/* Methods */
final public __construct(string
$value )final public mixed jsonSerialize()
final public string serialize()
final public string __toString()
final public void unserialize(string
}$data )Changelog
|