| Index: third_party/WebKit/Source/platform/Decimal.cpp
|
| diff --git a/third_party/WebKit/Source/platform/Decimal.cpp b/third_party/WebKit/Source/platform/Decimal.cpp
|
| index a90cdf8206ab2eef59f8e073b7d4affeafee5bb4..b0c57e33d84d20dc616774e6244b3b0312adb93c 100644
|
| --- a/third_party/WebKit/Source/platform/Decimal.cpp
|
| +++ b/third_party/WebKit/Source/platform/Decimal.cpp
|
| @@ -1028,4 +1028,14 @@ Decimal Decimal::zero(Sign sign)
|
| return Decimal(EncodedData(sign, EncodedData::ClassZero));
|
| }
|
|
|
| +std::ostream& operator<<(std::ostream& ostream, const Decimal& decimal)
|
| +{
|
| + Decimal::EncodedData data = decimal.value();
|
| + return ostream
|
| + << "encode(" << String::number(data.coefficient()).ascii().data()
|
| + << ", " << String::number(data.exponent()).ascii().data()
|
| + << ", " << (data.getSign() == Decimal::Negative ? "Negative" : "Positive")
|
| + << ")=" << decimal.toString().ascii().data();
|
| +}
|
| +
|
| } // namespace blink
|
|
|