Decimal 125 Source/bindings/v8/ExceptionMessages.cpp String ExceptionMessages::notAFiniteNumber(const Decimal& value, const char* name) Decimal 40 Source/bindings/v8/ExceptionMessages.h class Decimal; Decimal 127 Source/bindings/v8/ExceptionMessages.h static String notAFiniteNumber(const Decimal& value, const char* name = "value provided"); Decimal 289 Source/core/html/HTMLInputElement.cpp bool HTMLInputElement::getAllowedValueStep(Decimal* step) const Decimal 299 Source/core/html/HTMLInputElement.cpp Decimal HTMLInputElement::findClosestTickMarkValue(const Decimal& value) Decimal 1850 Source/core/html/HTMLInputElement.cpp suggestion.value = m_inputType->parseToNumber(option->value(), Decimal::nan()).toDouble(); Decimal 74 Source/core/html/HTMLInputElement.h bool getAllowedValueStep(Decimal*) const; Decimal 77 Source/core/html/HTMLInputElement.h Decimal findClosestTickMarkValue(const Decimal&); Decimal 63 Source/core/html/forms/BaseDateAndTimeInputType.cpp const Decimal value = parseToNumber(element().value(), Decimal::nan()); Decimal 69 Source/core/html/forms/BaseDateAndTimeInputType.cpp setValueAsDecimal(Decimal::fromDouble(newValue), eventBehavior, exceptionState); Decimal 82 Source/core/html/forms/BaseDateAndTimeInputType.cpp String BaseDateAndTimeInputType::rangeOverflowText(const Decimal& maximum) const Decimal 87 Source/core/html/forms/BaseDateAndTimeInputType.cpp String BaseDateAndTimeInputType::rangeUnderflowText(const Decimal& minimum) const Decimal 92 Source/core/html/forms/BaseDateAndTimeInputType.cpp Decimal BaseDateAndTimeInputType::defaultValueForStepUp() const Decimal 98 Source/core/html/forms/BaseDateAndTimeInputType.cpp return Decimal::fromDouble(ms + (offset * msPerMinute)); Decimal 106 Source/core/html/forms/BaseDateAndTimeInputType.cpp Decimal BaseDateAndTimeInputType::parseToNumber(const String& source, const Decimal& defaultValue) const Decimal 113 Source/core/html/forms/BaseDateAndTimeInputType.cpp return Decimal::fromDouble(msec); Decimal 126 Source/core/html/forms/BaseDateAndTimeInputType.cpp String BaseDateAndTimeInputType::serialize(const Decimal& value) const Decimal 138 Source/core/html/forms/BaseDateAndTimeInputType.cpp Decimal step; Decimal 150 Source/core/html/forms/BaseDateAndTimeInputType.cpp return serialize(Decimal::fromDouble(value)); Decimal 45 Source/core/html/forms/BaseDateAndTimeInputType.h virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; Decimal 52 Source/core/html/forms/BaseDateAndTimeInputType.h virtual String serialize(const Decimal&) const OVERRIDE; Decimal 66 Source/core/html/forms/BaseDateAndTimeInputType.h virtual String rangeOverflowText(const Decimal& maximum) const OVERRIDE; Decimal 67 Source/core/html/forms/BaseDateAndTimeInputType.h virtual String rangeUnderflowText(const Decimal& minimum) const OVERRIDE; Decimal 68 Source/core/html/forms/BaseDateAndTimeInputType.h virtual Decimal defaultValueForStepUp() const OVERRIDE; Decimal 75 Source/core/html/forms/DateInputType.cpp return InputType::createStepRange(anyStepHandling, dateDefaultStepBase, Decimal::fromDouble(DateComponents::minimumDate()), Decimal::fromDouble(DateComponents::maximumDate()), stepDescription); Decimal 84 Source/core/html/forms/DateTimeLocalInputType.cpp return InputType::createStepRange(anyStepHandling, dateTimeLocalDefaultStepBase, Decimal::fromDouble(DateComponents::minimumDateTime()), Decimal::fromDouble(DateComponents::maximumDateTime()), stepDescription); Decimal 221 Source/core/html/forms/InputType.cpp void InputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState&) const Decimal 267 Source/core/html/forms/InputType.cpp const Decimal numericValue = parseToNumberOrNaN(value); Decimal 279 Source/core/html/forms/InputType.cpp const Decimal numericValue = parseToNumberOrNaN(value); Decimal 286 Source/core/html/forms/InputType.cpp Decimal InputType::defaultValueForStepUp() const Decimal 306 Source/core/html/forms/InputType.cpp const Decimal numericValue = parseToNumberOrNaN(value); Decimal 319 Source/core/html/forms/InputType.cpp const Decimal numericValue = parseToNumberOrNaN(value); Decimal 332 Source/core/html/forms/InputType.cpp const Decimal numericValue = parseToNumberOrNaN(value); Decimal 345 Source/core/html/forms/InputType.cpp String InputType::rangeOverflowText(const Decimal&) const Decimal 351 Source/core/html/forms/InputType.cpp String InputType::rangeUnderflowText(const Decimal&) const Decimal 391 Source/core/html/forms/InputType.cpp const Decimal numericValue = parseToNumberOrNaN(value); Decimal 405 Source/core/html/forms/InputType.cpp Decimal candidate1 = stepRange.clampValue(numericValue); Decimal 407 Source/core/html/forms/InputType.cpp Decimal candidate2 = candidate1 < numericValue ? candidate1 + stepRange.step() : candidate1 - stepRange.step(); Decimal 424 Source/core/html/forms/InputType.cpp Decimal InputType::parseToNumber(const String&, const Decimal& defaultValue) const Decimal 430 Source/core/html/forms/InputType.cpp Decimal InputType::parseToNumberOrNaN(const String& string) const Decimal 432 Source/core/html/forms/InputType.cpp return parseToNumber(string, Decimal::nan()); Decimal 435 Source/core/html/forms/InputType.cpp String InputType::serialize(const Decimal&) const Decimal 751 Source/core/html/forms/InputType.cpp Decimal InputType::findClosestTickMarkValue(const Decimal&) Decimal 754 Source/core/html/forms/InputType.cpp return Decimal::nan(); Decimal 796 Source/core/html/forms/InputType.cpp void InputType::applyStep(const Decimal& current, int count, AnyStepHandling anyStepHandling, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) Decimal 805 Source/core/html/forms/InputType.cpp const Decimal step = stepRange.step(); Decimal 818 Source/core/html/forms/InputType.cpp Decimal newValue; Decimal 819 Source/core/html/forms/InputType.cpp const Decimal base = stepRange.stepBase(); Decimal 842 Source/core/html/forms/InputType.cpp Decimal newValue = current + stepRange.step() * count; Decimal 858 Source/core/html/forms/InputType.cpp bool InputType::getAllowedValueStep(Decimal* step) const Decimal 877 Source/core/html/forms/InputType.cpp const Decimal current = parseToNumber(element().value(), 0); Decimal 926 Source/core/html/forms/InputType.cpp const Decimal step = stepRange.step(); Decimal 936 Source/core/html/forms/InputType.cpp Decimal current = parseToNumberOrNaN(element().value()); Decimal 939 Source/core/html/forms/InputType.cpp const Decimal nextDiff = step * n; Decimal 961 Source/core/html/forms/InputType.cpp Decimal InputType::findStepBase(const Decimal& defaultValue) const Decimal 963 Source/core/html/forms/InputType.cpp Decimal stepBase = parseToNumber(element().fastGetAttribute(minAttr), Decimal::nan()); Decimal 969 Source/core/html/forms/InputType.cpp StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Decimal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::StepDescription& stepDescription) const Decimal 971 Source/core/html/forms/InputType.cpp const Decimal stepBase = findStepBase(stepBaseDefault); Decimal 972 Source/core/html/forms/InputType.cpp const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), minimumDefault); Decimal 973 Source/core/html/forms/InputType.cpp const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), maximumDefault); Decimal 974 Source/core/html/forms/InputType.cpp const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); Decimal 120 Source/core/html/forms/InputType.h virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState&) const; Decimal 138 Source/core/html/forms/InputType.h virtual Decimal defaultValueForStepUp() const; Decimal 142 Source/core/html/forms/InputType.h virtual bool getAllowedValueStep(Decimal*) const; Decimal 147 Source/core/html/forms/InputType.h virtual String rangeOverflowText(const Decimal& maximum) const; Decimal 148 Source/core/html/forms/InputType.h virtual String rangeUnderflowText(const Decimal& minimum) const; Decimal 192 Source/core/html/forms/InputType.h virtual Decimal findClosestTickMarkValue(const Decimal&); Decimal 201 Source/core/html/forms/InputType.h virtual Decimal parseToNumber(const String&, const Decimal& defaultValue) const; Decimal 206 Source/core/html/forms/InputType.h virtual String serialize(const Decimal&) const; Decimal 229 Source/core/html/forms/InputType.h Decimal parseToNumberOrNaN(const String&) const; Decimal 233 Source/core/html/forms/InputType.h Decimal findStepBase(const Decimal&) const; Decimal 235 Source/core/html/forms/InputType.h StepRange createStepRange(AnyStepHandling, const Decimal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefault, const StepRange::StepDescription&) const; Decimal 239 Source/core/html/forms/InputType.h void applyStep(const Decimal&, int count, AnyStepHandling, TextFieldEventBehavior, ExceptionState&); Decimal 87 Source/core/html/forms/MonthInputType.cpp Decimal MonthInputType::defaultValueForStepUp() const Decimal 99 Source/core/html/forms/MonthInputType.cpp return Decimal::fromDouble(months); Decimal 106 Source/core/html/forms/MonthInputType.cpp return InputType::createStepRange(anyStepHandling, Decimal::fromDouble(monthDefaultStepBase), Decimal::fromDouble(DateComponents::minimumMonth()), Decimal::fromDouble(DateComponents::maximumMonth()), stepDescription); Decimal 109 Source/core/html/forms/MonthInputType.cpp Decimal MonthInputType::parseToNumber(const String& src, const Decimal& defaultValue) const Decimal 116 Source/core/html/forms/MonthInputType.cpp return Decimal::fromDouble(months); Decimal 55 Source/core/html/forms/MonthInputType.h virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; Decimal 56 Source/core/html/forms/MonthInputType.h virtual Decimal defaultValueForStepUp() const OVERRIDE; Decimal 76 Source/core/html/forms/NumberInputType.cpp static RealNumberRenderSize calculateRenderSize(const Decimal& value) Decimal 129 Source/core/html/forms/NumberInputType.cpp void NumberInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState& exceptionState) const Decimal 148 Source/core/html/forms/NumberInputType.cpp const Decimal doubleMax = Decimal::fromDouble(numeric_limits<double>::max()); Decimal 160 Source/core/html/forms/NumberInputType.cpp const Decimal minimum = parseToDecimalForNumberType(element().fastGetAttribute(minAttr)); Decimal 164 Source/core/html/forms/NumberInputType.cpp const Decimal maximum = parseToDecimalForNumberType(element().fastGetAttribute(maxAttr)); Decimal 168 Source/core/html/forms/NumberInputType.cpp const Decimal step = parseToDecimalForNumberType(stepString, 1); Decimal 190 Source/core/html/forms/NumberInputType.cpp Decimal NumberInputType::parseToNumber(const String& src, const Decimal& defaultValue) const Decimal 195 Source/core/html/forms/NumberInputType.cpp String NumberInputType::serialize(const Decimal& value) const Decimal 250 Source/core/html/forms/NumberInputType.cpp String NumberInputType::rangeOverflowText(const Decimal& maximum) const Decimal 255 Source/core/html/forms/NumberInputType.cpp String NumberInputType::rangeUnderflowText(const Decimal& minimum) const Decimal 51 Source/core/html/forms/NumberInputType.h virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState&) const OVERRIDE; Decimal 58 Source/core/html/forms/NumberInputType.h virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; Decimal 59 Source/core/html/forms/NumberInputType.h virtual String serialize(const Decimal&) const OVERRIDE; Decimal 66 Source/core/html/forms/NumberInputType.h virtual String rangeOverflowText(const Decimal& maxmum) const OVERRIDE; Decimal 67 Source/core/html/forms/NumberInputType.h virtual String rangeUnderflowText(const Decimal& minimum) const OVERRIDE; Decimal 72 Source/core/html/forms/RangeInputType.cpp static Decimal ensureMaximum(const Decimal& proposedValue, const Decimal& minimum, const Decimal& fallbackValue) Decimal 110 Source/core/html/forms/RangeInputType.cpp setValueAsDecimal(Decimal::fromDouble(newValue), eventBehavior, exceptionState); Decimal 127 Source/core/html/forms/RangeInputType.cpp const Decimal stepBase = findStepBase(rangeDefaultStepBase); Decimal 128 Source/core/html/forms/RangeInputType.cpp const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), rangeDefaultMinimum); Decimal 129 Source/core/html/forms/RangeInputType.cpp const Decimal maximum = ensureMaximum(parseToNumber(element().fastGetAttribute(maxAttr), rangeDefaultMaximum), minimum, rangeDefaultMaximum); Decimal 133 Source/core/html/forms/RangeInputType.cpp const Decimal step = equalIgnoringCase(precisionValue, "float") ? Decimal::nan() : 1; Decimal 137 Source/core/html/forms/RangeInputType.cpp const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); Decimal 192 Source/core/html/forms/RangeInputType.cpp const Decimal current = parseToNumberOrNaN(element().value()); Decimal 200 Source/core/html/forms/RangeInputType.cpp const Decimal step = equalIgnoringCase(element().fastGetAttribute(stepAttr), "any") ? (stepRange.maximum() - stepRange.minimum()) / 100 : stepRange.step(); Decimal 201 Source/core/html/forms/RangeInputType.cpp const Decimal bigStep = max((stepRange.maximum() - stepRange.minimum()) / 10, step); Decimal 209 Source/core/html/forms/RangeInputType.cpp Decimal newValue; Decimal 262 Source/core/html/forms/RangeInputType.cpp Decimal RangeInputType::parseToNumber(const String& src, const Decimal& defaultValue) const Decimal 267 Source/core/html/forms/RangeInputType.cpp String RangeInputType::serialize(const Decimal& value) const Decimal 308 Source/core/html/forms/RangeInputType.cpp const Decimal proposedNumericValue = parseToNumber(proposedValue, stepRange.defaultValue()); Decimal 341 Source/core/html/forms/RangeInputType.cpp static bool decimalCompare(const Decimal& a, const Decimal& b) Decimal 363 Source/core/html/forms/RangeInputType.cpp m_tickMarkValues.append(parseToNumber(optionValue, Decimal::nan())); Decimal 369 Source/core/html/forms/RangeInputType.cpp Decimal RangeInputType::findClosestTickMarkValue(const Decimal& value) Decimal 373 Source/core/html/forms/RangeInputType.cpp return Decimal::nan(); Decimal 395 Source/core/html/forms/RangeInputType.cpp const Decimal closestLeft = middle ? m_tickMarkValues[middle - 1] : Decimal::infinity(Decimal::Negative); Decimal 396 Source/core/html/forms/RangeInputType.cpp const Decimal closestRight = middle != m_tickMarkValues.size() ? m_tickMarkValues[middle] : Decimal::infinity(Decimal::Positive); Decimal 62 Source/core/html/forms/RangeInputType.h virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; Decimal 63 Source/core/html/forms/RangeInputType.h virtual String serialize(const Decimal&) const OVERRIDE; Decimal 75 Source/core/html/forms/RangeInputType.h virtual Decimal findClosestTickMarkValue(const Decimal&) OVERRIDE; Decimal 78 Source/core/html/forms/RangeInputType.h Vector<Decimal> m_tickMarkValues; Decimal 55 Source/core/html/forms/StepRange.cpp StepRange::StepRange(const Decimal& stepBase, const Decimal& minimum, const Decimal& maximum, const Decimal& step, const StepDescription& stepDescription) Decimal 69 Source/core/html/forms/StepRange.cpp Decimal StepRange::acceptableError() const Decimal 72 Source/core/html/forms/StepRange.cpp DEFINE_STATIC_LOCAL(const Decimal, twoPowerOfFloatMantissaBits, (Decimal::Positive, 0, UINT64_C(1) << FLT_MANT_DIG)); Decimal 73 Source/core/html/forms/StepRange.cpp return m_stepDescription.stepValueShouldBe == StepValueShouldBeReal ? m_step / twoPowerOfFloatMantissaBits : Decimal(0); Decimal 76 Source/core/html/forms/StepRange.cpp Decimal StepRange::alignValueForStep(const Decimal& currentValue, const Decimal& newValue) const Decimal 78 Source/core/html/forms/StepRange.cpp DEFINE_STATIC_LOCAL(const Decimal, tenPowerOf21, (Decimal::Positive, 21, 1)); Decimal 85 Source/core/html/forms/StepRange.cpp Decimal StepRange::clampValue(const Decimal& value) const Decimal 87 Source/core/html/forms/StepRange.cpp const Decimal inRangeValue = max(m_minimum, min(value, m_maximum)); Decimal 91 Source/core/html/forms/StepRange.cpp const Decimal roundedValue = roundByStep(inRangeValue, m_stepBase); Decimal 92 Source/core/html/forms/StepRange.cpp const Decimal clampedValue = roundedValue > m_maximum ? roundedValue - m_step : (roundedValue < m_minimum ? roundedValue + m_step : roundedValue); Decimal 98 Source/core/html/forms/StepRange.cpp Decimal StepRange::parseStep(AnyStepHandling anyStepHandling, const StepDescription& stepDescription, const String& stepString) Decimal 106 Source/core/html/forms/StepRange.cpp return Decimal::nan(); Decimal 114 Source/core/html/forms/StepRange.cpp Decimal step = parseToDecimalForNumberType(stepString); Decimal 124 Source/core/html/forms/StepRange.cpp step = max(step.round(), Decimal(1)); Decimal 130 Source/core/html/forms/StepRange.cpp step = max(step.round(), Decimal(1)); Decimal 140 Source/core/html/forms/StepRange.cpp Decimal StepRange::roundByStep(const Decimal& value, const Decimal& base) const Decimal 145 Source/core/html/forms/StepRange.cpp bool StepRange::stepMismatch(const Decimal& valueForCheck) const Decimal 151 Source/core/html/forms/StepRange.cpp const Decimal value = (valueForCheck - m_stepBase).abs(); Decimal 157 Source/core/html/forms/StepRange.cpp DEFINE_STATIC_LOCAL(const Decimal, twoPowerOfDoubleMantissaBits, (Decimal::Positive, 0, UINT64_C(1) << DBL_MANT_DIG)); Decimal 163 Source/core/html/forms/StepRange.cpp const Decimal remainder = (value - m_step * (value / m_step).round()).abs(); Decimal 166 Source/core/html/forms/StepRange.cpp const Decimal computedAcceptableError = acceptableError(); Decimal 65 Source/core/html/forms/StepRange.h Decimal defaultValue() const Decimal 73 Source/core/html/forms/StepRange.h StepRange(const Decimal& stepBase, const Decimal& minimum, const Decimal& maximum, const Decimal& step, const StepDescription&); Decimal 74 Source/core/html/forms/StepRange.h Decimal alignValueForStep(const Decimal& currentValue, const Decimal& newValue) const; Decimal 75 Source/core/html/forms/StepRange.h Decimal clampValue(const Decimal& value) const; Decimal 77 Source/core/html/forms/StepRange.h Decimal maximum() const { return m_maximum; } Decimal 78 Source/core/html/forms/StepRange.h Decimal minimum() const { return m_minimum; } Decimal 79 Source/core/html/forms/StepRange.h static Decimal parseStep(AnyStepHandling, const StepDescription&, const String&); Decimal 80 Source/core/html/forms/StepRange.h Decimal step() const { return m_step; } Decimal 81 Source/core/html/forms/StepRange.h Decimal stepBase() const { return m_stepBase; } Decimal 82 Source/core/html/forms/StepRange.h bool stepMismatch(const Decimal&) const; Decimal 85 Source/core/html/forms/StepRange.h Decimal defaultValue() const Decimal 91 Source/core/html/forms/StepRange.h Decimal proportionFromValue(const Decimal& value) const Decimal 100 Source/core/html/forms/StepRange.h Decimal valueFromProportion(const Decimal& proportion) const Decimal 107 Source/core/html/forms/StepRange.h Decimal acceptableError() const; Decimal 108 Source/core/html/forms/StepRange.h Decimal roundByStep(const Decimal& value, const Decimal& base) const; Decimal 110 Source/core/html/forms/StepRange.h const Decimal m_maximum; // maximum must be >= minimum. Decimal 111 Source/core/html/forms/StepRange.h const Decimal m_minimum; Decimal 112 Source/core/html/forms/StepRange.h const Decimal m_step; Decimal 113 Source/core/html/forms/StepRange.h const Decimal m_stepBase; Decimal 74 Source/core/html/forms/TimeInputType.cpp Decimal TimeInputType::defaultValueForStepUp() const Decimal 86 Source/core/html/forms/TimeInputType.cpp return Decimal::fromDouble(milliseconds); Decimal 93 Source/core/html/forms/TimeInputType.cpp return InputType::createStepRange(anyStepHandling, timeDefaultStepBase, Decimal::fromDouble(DateComponents::minimumTime()), Decimal::fromDouble(DateComponents::maximumTime()), stepDescription); Decimal 53 Source/core/html/forms/TimeInputType.h virtual Decimal defaultValueForStepUp() const OVERRIDE; Decimal 70 Source/core/html/forms/WeekInputType.cpp return InputType::createStepRange(anyStepHandling, weekDefaultStepBase, Decimal::fromDouble(DateComponents::minimumWeek()), Decimal::fromDouble(DateComponents::maximumWeek()), stepDescription); Decimal 204 Source/core/html/parser/HTMLEntityParser.cpp entityState = Decimal; Decimal 242 Source/core/html/parser/HTMLEntityParser.cpp case Decimal: { Decimal 80 Source/core/html/parser/HTMLParserIdioms.cpp String serializeForNumberType(const Decimal& number) Decimal 96 Source/core/html/parser/HTMLParserIdioms.cpp Decimal parseToDecimalForNumberType(const String& string, const Decimal& fallbackValue) Decimal 104 Source/core/html/parser/HTMLParserIdioms.cpp const Decimal value = Decimal::fromString(string); Decimal 109 Source/core/html/parser/HTMLParserIdioms.cpp const Decimal doubleMax = Decimal::fromDouble(std::numeric_limits<double>::max()); Decimal 114 Source/core/html/parser/HTMLParserIdioms.cpp return value.isZero() ? Decimal(0) : value; Decimal 53 Source/core/html/parser/HTMLParserIdioms.h String serializeForNumberType(const Decimal&); Decimal 59 Source/core/html/parser/HTMLParserIdioms.h Decimal parseToDecimalForNumberType(const String&, const Decimal& fallbackValue = Decimal::nan()); Decimal 358 Source/core/html/shadow/DateTimeEditElement.cpp const Decimal decimalMsPerDay(static_cast<int>(msPerDay)); Decimal 359 Source/core/html/shadow/DateTimeEditElement.cpp Decimal hourPartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerDay) / static_cast<int>(msPerHour)).floor(); Decimal 368 Source/core/html/shadow/DateTimeEditElement.cpp const Decimal decimalMsPerSecond(static_cast<int>(msPerSecond)); Decimal 377 Source/core/html/shadow/DateTimeEditElement.cpp const Decimal decimalMsPerHour(static_cast<int>(msPerHour)); Decimal 378 Source/core/html/shadow/DateTimeEditElement.cpp Decimal minutePartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerHour) / static_cast<int>(msPerMinute)).floor(); Decimal 387 Source/core/html/shadow/DateTimeEditElement.cpp const Decimal decimalMsPerMinute(static_cast<int>(msPerMinute)); Decimal 388 Source/core/html/shadow/DateTimeEditElement.cpp Decimal secondPartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerMinute) / static_cast<int>(msPerSecond)).floor(); Decimal 417 Source/core/html/shadow/DateTimeEditElement.cpp const Decimal msPerFieldUnitDecimal(static_cast<int>(msPerFieldUnit)); Decimal 418 Source/core/html/shadow/DateTimeEditElement.cpp const Decimal msPerFieldSizeDecimal(static_cast<int>(msPerFieldSize)); Decimal 419 Source/core/html/shadow/DateTimeEditElement.cpp Decimal stepMilliseconds = stepRange().step(); Decimal 55 Source/core/html/shadow/SliderThumbElement.cpp inline static Decimal sliderPosition(HTMLInputElement* element) Decimal 58 Source/core/html/shadow/SliderThumbElement.cpp const Decimal oldValue = parseToDecimalForNumberType(element->value(), stepRange.defaultValue()); Decimal 282 Source/core/html/shadow/SliderThumbElement.cpp const Decimal ratio = Decimal::fromDouble(static_cast<double>(position) / trackSize); Decimal 283 Source/core/html/shadow/SliderThumbElement.cpp const Decimal fraction = isVertical || !isLeftToRightDirection ? Decimal(1) - ratio : ratio; Decimal 285 Source/core/html/shadow/SliderThumbElement.cpp Decimal value = stepRange.clampValue(stepRange.valueFromProportion(fraction)); Decimal 287 Source/core/html/shadow/SliderThumbElement.cpp Decimal closest = input->findClosestTickMarkValue(value); Decimal 63 Source/platform/Decimal.cpp SpecialValueHandler(const Decimal& lhs, const Decimal& rhs); Decimal 65 Source/platform/Decimal.cpp Decimal value() const; Decimal 74 Source/platform/Decimal.cpp const Decimal& m_lhs; Decimal 75 Source/platform/Decimal.cpp const Decimal& m_rhs; Decimal 79 Source/platform/Decimal.cpp SpecialValueHandler::SpecialValueHandler(const Decimal& lhs, const Decimal& rhs) Decimal 89 Source/platform/Decimal.cpp const Decimal::EncodedData::FormatClass lhsClass = m_lhs.value().formatClass(); Decimal 90 Source/platform/Decimal.cpp const Decimal::EncodedData::FormatClass rhsClass = m_rhs.value().formatClass(); Decimal 91 Source/platform/Decimal.cpp if (lhsClass == Decimal::EncodedData::ClassNaN) { Decimal 96 Source/platform/Decimal.cpp if (rhsClass == Decimal::EncodedData::ClassNaN) { Decimal 101 Source/platform/Decimal.cpp if (lhsClass == Decimal::EncodedData::ClassInfinity) Decimal 102 Source/platform/Decimal.cpp return rhsClass == Decimal::EncodedData::ClassInfinity ? BothInfinity : LHSIsInfinity; Decimal 104 Source/platform/Decimal.cpp if (rhsClass == Decimal::EncodedData::ClassInfinity) Decimal 111 Source/platform/Decimal.cpp Decimal SpecialValueHandler::value() const Decimal 233 Source/platform/Decimal.cpp Decimal::EncodedData::EncodedData(Sign sign, FormatClass formatClass) Decimal 241 Source/platform/Decimal.cpp Decimal::EncodedData::EncodedData(Sign sign, int exponent, uint64_t coefficient) Decimal 270 Source/platform/Decimal.cpp bool Decimal::EncodedData::operator==(const EncodedData& another) const Decimal 278 Source/platform/Decimal.cpp Decimal::Decimal(int32_t i32) Decimal 283 Source/platform/Decimal.cpp Decimal::Decimal(Sign sign, int exponent, uint64_t coefficient) Decimal 288 Source/platform/Decimal.cpp Decimal::Decimal(const EncodedData& data) Decimal 293 Source/platform/Decimal.cpp Decimal::Decimal(const Decimal& other) Decimal 298 Source/platform/Decimal.cpp Decimal& Decimal::operator=(const Decimal& other) Decimal 304 Source/platform/Decimal.cpp Decimal& Decimal::operator+=(const Decimal& other) Decimal 310 Source/platform/Decimal.cpp Decimal& Decimal::operator-=(const Decimal& other) Decimal 316 Source/platform/Decimal.cpp Decimal& Decimal::operator*=(const Decimal& other) Decimal 322 Source/platform/Decimal.cpp Decimal& Decimal::operator/=(const Decimal& other) Decimal 328 Source/platform/Decimal.cpp Decimal Decimal::operator-() const Decimal 333 Source/platform/Decimal.cpp Decimal result(*this); Decimal 338 Source/platform/Decimal.cpp Decimal Decimal::operator+(const Decimal& rhs) const Decimal 340 Source/platform/Decimal.cpp const Decimal& lhs = *this; Decimal 369 Source/platform/Decimal.cpp return Decimal(Positive, alignedOperands.exponent, 0); Decimal 372 Source/platform/Decimal.cpp ? Decimal(lhsSign, alignedOperands.exponent, result) Decimal 373 Source/platform/Decimal.cpp : Decimal(invertSign(lhsSign), alignedOperands.exponent, -static_cast<int64_t>(result)); Decimal 376 Source/platform/Decimal.cpp Decimal Decimal::operator-(const Decimal& rhs) const Decimal 378 Source/platform/Decimal.cpp const Decimal& lhs = *this; Decimal 407 Source/platform/Decimal.cpp return Decimal(Positive, alignedOperands.exponent, 0); Decimal 410 Source/platform/Decimal.cpp ? Decimal(lhsSign, alignedOperands.exponent, result) Decimal 411 Source/platform/Decimal.cpp : Decimal(invertSign(lhsSign), alignedOperands.exponent, -static_cast<int64_t>(result)); Decimal 414 Source/platform/Decimal.cpp Decimal Decimal::operator*(const Decimal& rhs) const Decimal 416 Source/platform/Decimal.cpp const Decimal& lhs = *this; Decimal 432 Source/platform/Decimal.cpp return Decimal(resultSign, resultExponent, work.low()); Decimal 452 Source/platform/Decimal.cpp Decimal Decimal::operator/(const Decimal& rhs) const Decimal 454 Source/platform/Decimal.cpp const Decimal& lhs = *this; Decimal 486 Source/platform/Decimal.cpp return Decimal(resultSign, resultExponent, 0); Decimal 506 Source/platform/Decimal.cpp return Decimal(resultSign, resultExponent, result); Decimal 509 Source/platform/Decimal.cpp bool Decimal::operator==(const Decimal& rhs) const Decimal 514 Source/platform/Decimal.cpp bool Decimal::operator!=(const Decimal& rhs) const Decimal 518 Source/platform/Decimal.cpp const Decimal result = compareTo(rhs); Decimal 524 Source/platform/Decimal.cpp bool Decimal::operator<(const Decimal& rhs) const Decimal 526 Source/platform/Decimal.cpp const Decimal result = compareTo(rhs); Decimal 532 Source/platform/Decimal.cpp bool Decimal::operator<=(const Decimal& rhs) const Decimal 536 Source/platform/Decimal.cpp const Decimal result = compareTo(rhs); Decimal 542 Source/platform/Decimal.cpp bool Decimal::operator>(const Decimal& rhs) const Decimal 544 Source/platform/Decimal.cpp const Decimal result = compareTo(rhs); Decimal 550 Source/platform/Decimal.cpp bool Decimal::operator>=(const Decimal& rhs) const Decimal 554 Source/platform/Decimal.cpp const Decimal result = compareTo(rhs); Decimal 560 Source/platform/Decimal.cpp Decimal Decimal::abs() const Decimal 562 Source/platform/Decimal.cpp Decimal result(*this); Decimal 567 Source/platform/Decimal.cpp Decimal::AlignedOperands Decimal::alignOperands(const Decimal& lhs, const Decimal& rhs) Decimal 621 Source/platform/Decimal.cpp Decimal Decimal::ceiling() const Decimal 633 Source/platform/Decimal.cpp return isPositive() ? Decimal(1) : zero(Positive); Decimal 638 Source/platform/Decimal.cpp return Decimal(sign(), 0, result); Decimal 641 Source/platform/Decimal.cpp Decimal Decimal::compareTo(const Decimal& rhs) const Decimal 643 Source/platform/Decimal.cpp const Decimal result(*this - rhs); Decimal 646 Source/platform/Decimal.cpp return result.isNegative() ? Decimal(-1) : Decimal(1); Decimal 662 Source/platform/Decimal.cpp Decimal Decimal::floor() const Decimal 674 Source/platform/Decimal.cpp return isPositive() ? zero(Positive) : Decimal(-1); Decimal 679 Source/platform/Decimal.cpp return Decimal(sign(), 0, result); Decimal 682 Source/platform/Decimal.cpp Decimal Decimal::fromDouble(double doubleValue) Decimal 693 Source/platform/Decimal.cpp Decimal Decimal::fromString(const String& str) Decimal 879 Source/platform/Decimal.cpp return Decimal(sign, resultExponent, accumulator); Decimal 885 Source/platform/Decimal.cpp Decimal Decimal::infinity(const Sign sign) Decimal 887 Source/platform/Decimal.cpp return Decimal(EncodedData(sign, EncodedData::ClassInfinity)); Decimal 890 Source/platform/Decimal.cpp Decimal Decimal::nan() Decimal 892 Source/platform/Decimal.cpp return Decimal(EncodedData(Positive, EncodedData::ClassNaN)); Decimal 895 Source/platform/Decimal.cpp Decimal Decimal::remainder(const Decimal& rhs) const Decimal 897 Source/platform/Decimal.cpp const Decimal quotient = *this / rhs; Decimal 901 Source/platform/Decimal.cpp Decimal Decimal::round() const Decimal 919 Source/platform/Decimal.cpp return Decimal(sign(), 0, result); Decimal 922 Source/platform/Decimal.cpp double Decimal::toDouble() const Decimal 936 Source/platform/Decimal.cpp String Decimal::toString() const Decimal 1021 Source/platform/Decimal.cpp Decimal Decimal::zero(Sign sign) Decimal 1023 Source/platform/Decimal.cpp return Decimal(EncodedData(sign, EncodedData::ClassZero)); Decimal 50 Source/platform/Decimal.h class PLATFORM_EXPORT Decimal { Decimal 61 Source/platform/Decimal.h friend class Decimal; Decimal 97 Source/platform/Decimal.h Decimal(int32_t = 0); Decimal 98 Source/platform/Decimal.h Decimal(Sign, int exponent, uint64_t coefficient); Decimal 99 Source/platform/Decimal.h Decimal(const Decimal&); Decimal 101 Source/platform/Decimal.h Decimal& operator=(const Decimal&); Decimal 102 Source/platform/Decimal.h Decimal& operator+=(const Decimal&); Decimal 103 Source/platform/Decimal.h Decimal& operator-=(const Decimal&); Decimal 104 Source/platform/Decimal.h Decimal& operator*=(const Decimal&); Decimal 105 Source/platform/Decimal.h Decimal& operator/=(const Decimal&); Decimal 107 Source/platform/Decimal.h Decimal operator-() const; Decimal 109 Source/platform/Decimal.h bool operator==(const Decimal&) const; Decimal 110 Source/platform/Decimal.h bool operator!=(const Decimal&) const; Decimal 111 Source/platform/Decimal.h bool operator<(const Decimal&) const; Decimal 112 Source/platform/Decimal.h bool operator<=(const Decimal&) const; Decimal 113 Source/platform/Decimal.h bool operator>(const Decimal&) const; Decimal 114 Source/platform/Decimal.h bool operator>=(const Decimal&) const; Decimal 116 Source/platform/Decimal.h Decimal operator+(const Decimal&) const; Decimal 117 Source/platform/Decimal.h Decimal operator-(const Decimal&) const; Decimal 118 Source/platform/Decimal.h Decimal operator*(const Decimal&) const; Decimal 119 Source/platform/Decimal.h Decimal operator/(const Decimal&) const; Decimal 135 Source/platform/Decimal.h Decimal abs() const; Decimal 136 Source/platform/Decimal.h Decimal ceiling() const; Decimal 137 Source/platform/Decimal.h Decimal floor() const; Decimal 138 Source/platform/Decimal.h Decimal remainder(const Decimal&) const; Decimal 139 Source/platform/Decimal.h Decimal round() const; Decimal 145 Source/platform/Decimal.h static Decimal fromDouble(double); Decimal 153 Source/platform/Decimal.h static Decimal fromString(const String&); Decimal 154 Source/platform/Decimal.h static Decimal infinity(Sign); Decimal 155 Source/platform/Decimal.h static Decimal nan(); Decimal 156 Source/platform/Decimal.h static Decimal zero(Sign); Decimal 159 Source/platform/Decimal.h explicit Decimal(const EncodedData&); Decimal 169 Source/platform/Decimal.h Decimal(double); Decimal 170 Source/platform/Decimal.h Decimal compareTo(const Decimal&) const; Decimal 172 Source/platform/Decimal.h static AlignedOperands alignOperands(const Decimal& lhs, const Decimal& rhs); Decimal 41 Source/platform/DecimalTest.cpp std::ostream& operator<<(std::ostream& os, const Decimal& decimal) Decimal 43 Source/platform/DecimalTest.cpp Decimal::EncodedData data = decimal.value(); Decimal 47 Source/platform/DecimalTest.cpp << ", " << (data.sign() == Decimal::Negative ? "Negative" : "Positive") Decimal 58 Source/platform/DecimalTest.cpp Decimal maximum; Decimal 59 Source/platform/DecimalTest.cpp Decimal minimum; Decimal 60 Source/platform/DecimalTest.cpp Decimal step; Decimal 62 Source/platform/DecimalTest.cpp DecimalStepRange(const Decimal& minimum, const Decimal& maximum, const Decimal& step) Decimal 69 Source/platform/DecimalTest.cpp Decimal clampValue(Decimal value) const Decimal 71 Source/platform/DecimalTest.cpp const Decimal result = minimum + ((value - minimum) / step).round() * step; Decimal 79 Source/platform/DecimalTest.cpp typedef Decimal::Sign Sign; Decimal 80 Source/platform/DecimalTest.cpp protected: static const Sign Positive = Decimal::Positive; Decimal 81 Source/platform/DecimalTest.cpp protected: static const Sign Negative = Decimal::Negative; Decimal 83 Source/platform/DecimalTest.cpp Decimal encode(uint64_t coefficient, int exponent, Sign sign) Decimal 85 Source/platform/DecimalTest.cpp return Decimal(sign, exponent, coefficient); Decimal 88 Source/platform/DecimalTest.cpp protected: Decimal fromString(const String& string) Decimal 90 Source/platform/DecimalTest.cpp return Decimal::fromString(string); Decimal 93 Source/platform/DecimalTest.cpp protected: Decimal stepDown(const String& minimum, const String& maximum, const String& step, const String& valueString, int numberOfStepTimes) Decimal 96 Source/platform/DecimalTest.cpp Decimal value = fromString(valueString); Decimal 104 Source/platform/DecimalTest.cpp protected: Decimal stepUp(const String& minimum, const String& maximum, const String& step, const String& valueString, int numberOfStepTimes) Decimal 107 Source/platform/DecimalTest.cpp Decimal value = fromString(valueString); Decimal 120 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::expectedSign, (decimal).value().sign()); Decimal 159 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).abs()); Decimal 160 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Negative).abs()); Decimal 161 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().abs()); Decimal 166 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) + Decimal(0)); Decimal 167 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(2) + Decimal(-1)); Decimal 168 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(-1) + Decimal(2)); Decimal 169 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Positive), Decimal(99) + Decimal(1)); Decimal 170 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Negative), Decimal(-50) + Decimal(-50)); Decimal 171 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Positive), encode(1, 50, Positive) + Decimal(1)); Decimal 172 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Positive), Decimal(1) + encode(1, 50, Positive)); Decimal 173 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(10000000001), 0, Positive), encode(1, 10, Positive) + Decimal(1)); Decimal 174 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(10000000001), 0, Positive), Decimal(1) + encode(1, 10, Positive)); Decimal 183 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(std::numeric_limits<uint64_t>::max(), 1022, Positive) + encode(1, 0, Positive)); Decimal 195 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Decimal 196 Source/platform/DecimalTest.cpp const Decimal MinusInfinity(Decimal::infinity(Negative)); Decimal 197 Source/platform/DecimalTest.cpp const Decimal NaN(Decimal::nan()); Decimal 198 Source/platform/DecimalTest.cpp const Decimal Ten(10); Decimal 222 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(1).ceiling()); Decimal 223 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(1, -10, Positive).ceiling()); Decimal 224 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(11, -1, Positive).ceiling()); Decimal 225 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(13, -1, Positive).ceiling()); Decimal 226 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(15, -1, Positive).ceiling()); Decimal 227 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(19, -1, Positive).ceiling()); Decimal 228 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(151, -2, Positive).ceiling()); Decimal 229 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(101, -2, Positive).ceiling()); Decimal 230 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(199, -3, Positive).ceiling()); Decimal 231 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(199, -2, Positive).ceiling()); Decimal 232 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(3), encode(209, -2, Positive).ceiling()); Decimal 234 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), Decimal(-1).ceiling()); Decimal 235 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(0), encode(1, -10, Negative).ceiling()); Decimal 236 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(11, -1, Negative).ceiling()); Decimal 237 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(13, -1, Negative).ceiling()); Decimal 238 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(15, -1, Negative).ceiling()); Decimal 239 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(19, -1, Negative).ceiling()); Decimal 240 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(151, -2, Negative).ceiling()); Decimal 241 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(101, -2, Negative).ceiling()); Decimal 242 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(0), encode(199, -3, Negative).ceiling()); Decimal 243 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(199, -2, Negative).ceiling()); Decimal 244 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(209, -2, Negative).ceiling()); Decimal 261 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).ceiling()); Decimal 262 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Negative).ceiling()); Decimal 263 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().ceiling()); Decimal 268 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(0) == Decimal(0)); Decimal 269 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(0) != Decimal(1)); Decimal 270 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(0) < Decimal(1)); Decimal 271 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(0) <= Decimal(0)); Decimal 272 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(0) > Decimal(-1)); Decimal 273 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(0) >= Decimal(0)); Decimal 275 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(1) == Decimal(2)); Decimal 276 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(1) != Decimal(1)); Decimal 277 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(1) < Decimal(0)); Decimal 278 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(1) <= Decimal(0)); Decimal 279 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(1) > Decimal(2)); Decimal 280 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(1) >= Decimal(2)); Decimal 347 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Decimal 348 Source/platform/DecimalTest.cpp const Decimal MinusInfinity(Decimal::infinity(Negative)); Decimal 349 Source/platform/DecimalTest.cpp const Decimal NaN(Decimal::nan()); Decimal 350 Source/platform/DecimalTest.cpp const Decimal Zero(Decimal::zero(Positive)); Decimal 351 Source/platform/DecimalTest.cpp const Decimal MinusZero(Decimal::zero(Negative)); Decimal 352 Source/platform/DecimalTest.cpp const Decimal Ten(10); Decimal 491 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) / Decimal(1)); Decimal 492 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, 0, Negative), Decimal(2) / Decimal(-1)); Decimal 493 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(5, -1, Negative), Decimal(-1) / Decimal(2)); Decimal 494 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(99, 0, Positive), Decimal(99) / Decimal(1)); Decimal 495 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(-50) / Decimal(-50)); Decimal 496 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(3333333333333333), -16, Positive), Decimal(1) / Decimal(3)); Decimal 497 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(12345678901234), -1, Positive), encode(UINT64_C(12345678901234), 0, Positive) / Decimal(10)); Decimal 504 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 1022, Positive) / encode(1, -1000, Positive)); Decimal 515 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Decimal 516 Source/platform/DecimalTest.cpp const Decimal MinusInfinity(Decimal::infinity(Negative)); Decimal 517 Source/platform/DecimalTest.cpp const Decimal NaN(Decimal::nan()); Decimal 518 Source/platform/DecimalTest.cpp const Decimal Zero(Decimal::zero(Positive)); Decimal 519 Source/platform/DecimalTest.cpp const Decimal MinusZero(Decimal::zero(Negative)); Decimal 520 Source/platform/DecimalTest.cpp const Decimal Ten(10); Decimal 521 Source/platform/DecimalTest.cpp const Decimal MinusTen(-10); Decimal 562 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(1)); Decimal 564 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 2000, Positive)); Decimal 565 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::zero(Positive), encode(1, -2000, Positive)); Decimal 570 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(1).floor()); Decimal 571 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(0), encode(1, -10, Positive).floor()); Decimal 572 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(11, -1, Positive).floor()); Decimal 573 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(13, -1, Positive).floor()); Decimal 574 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(15, -1, Positive).floor()); Decimal 575 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(19, -1, Positive).floor()); Decimal 576 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(193332, -5, Positive).floor()); Decimal 577 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(12), encode(12002, -3, Positive).floor()); Decimal 579 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), Decimal(-1).floor()); Decimal 580 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), encode(1, -10, Negative).floor()); Decimal 581 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(11, -1, Negative).floor()); Decimal 582 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(13, -1, Negative).floor()); Decimal 583 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(15, -1, Negative).floor()); Decimal 584 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(19, -1, Negative).floor()); Decimal 585 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(193332, -5, Negative).floor()); Decimal 586 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-13), encode(12002, -3, Negative).floor()); Decimal 603 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).floor()); Decimal 604 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Negative).floor()); Decimal 605 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().floor()); Decimal 610 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal::fromDouble(0.0)); Decimal 611 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Negative), Decimal::fromDouble(-0.0)); Decimal 612 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), Decimal::fromDouble(1)); Decimal 613 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Negative), Decimal::fromDouble(-1)); Decimal 614 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, 0, Positive), Decimal::fromDouble(123)); Decimal 615 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(123, 0, Negative), Decimal::fromDouble(-123)); Decimal 616 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1, Positive), Decimal::fromDouble(0.1)); Decimal 617 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1, Negative), Decimal::fromDouble(-0.1)); Decimal 622 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(2220446049250313), -31, Positive), Decimal::fromDouble(std::numeric_limits<double>::epsilon())); Decimal 623 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(2220446049250313), -31, Negative), Decimal::fromDouble(-std::numeric_limits<double>::epsilon())); Decimal 624 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(17976931348623157), 292, Positive), Decimal::fromDouble(std::numeric_limits<double>::max())); Decimal 625 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(17976931348623157), 292, Negative), Decimal::fromDouble(-std::numeric_limits<double>::max())); Decimal 626 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(22250738585072014), -324, Positive), Decimal::fromDouble(std::numeric_limits<double>::min())); Decimal 627 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(22250738585072014), -324, Negative), Decimal::fromDouble(-std::numeric_limits<double>::min())); Decimal 628 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::fromDouble(std::numeric_limits<double>::infinity()).isInfinity()); Decimal 629 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::fromDouble(-std::numeric_limits<double>::infinity()).isInfinity()); Decimal 630 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::fromDouble(std::numeric_limits<double>::quiet_NaN()).isNaN()); Decimal 631 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::fromDouble(-std::numeric_limits<double>::quiet_NaN()).isNaN()); Decimal 636 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0)); Decimal 637 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Positive), Decimal(1)); Decimal 638 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Negative), Decimal(-1)); Decimal 639 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Positive), Decimal(100)); Decimal 640 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(100, 0, Negative), Decimal(-100)); Decimal 641 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0x7FFFFFFF, 0, Positive), Decimal(std::numeric_limits<int32_t>::max())); Decimal 642 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0x80000000u, 0, Negative), Decimal(std::numeric_limits<int32_t>::min())); Decimal 649 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), fromString("1")); Decimal 651 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), fromString("01")); Decimal 670 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), fromString("1E20000")); Decimal 671 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::zero(Positive), fromString("1E-20000")); Decimal 673 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::zero(Positive), fromString("1E-1026")); Decimal 674 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), fromString("1234567890E1036")); Decimal 684 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString(" 123 ")); Decimal 685 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("1,234")); Decimal 691 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("INF")); Decimal 692 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("Infinity")); Decimal 693 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("infinity")); Decimal 694 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("+Infinity")); Decimal 695 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("+infinity")); Decimal 696 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("-Infinity")); Decimal 697 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("-infinity")); Decimal 698 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("NaN")); Decimal 699 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("nan")); Decimal 700 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("+NaN")); Decimal 701 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("+nan")); Decimal 702 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("-NaN")); Decimal 703 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("-nan")); Decimal 708 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("x")); Decimal 709 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("0.")); Decimal 710 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("1x")); Decimal 712 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("1Ex")); Decimal 713 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("1E2x")); Decimal 714 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), fromString("1E+x")); Decimal 719 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) * Decimal(0)); Decimal 720 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, 0, Negative), Decimal(2) * Decimal(-1)); Decimal 721 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2, 0, Negative), Decimal(-1) * Decimal(2)); Decimal 722 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(99, 0, Positive), Decimal(99) * Decimal(1)); Decimal 723 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(2500, 0, Positive), Decimal(-50) * Decimal(-50)); Decimal 730 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 1022, Positive) * encode(1, 1022, Positive)); Decimal 742 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Decimal 743 Source/platform/DecimalTest.cpp const Decimal MinusInfinity(Decimal::infinity(Negative)); Decimal 744 Source/platform/DecimalTest.cpp const Decimal NaN(Decimal::nan()); Decimal 745 Source/platform/DecimalTest.cpp const Decimal Ten(10); Decimal 746 Source/platform/DecimalTest.cpp const Decimal MinusTen(-10); Decimal 747 Source/platform/DecimalTest.cpp const Decimal Zero(Decimal::zero(Positive)); Decimal 748 Source/platform/DecimalTest.cpp const Decimal MinusZero(Decimal::zero(Negative)); Decimal 820 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), -Decimal::infinity(Positive)); Decimal 821 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), -Decimal::infinity(Negative)); Decimal 822 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), -Decimal::nan()); Decimal 827 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Positive).isFinite()); Decimal 828 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isInfinity()); Decimal 829 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isNaN()); Decimal 830 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Positive).isPositive()); Decimal 831 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isNegative()); Decimal 832 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Positive).isSpecial()); Decimal 833 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Positive).isZero()); Decimal 835 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Negative).isFinite()); Decimal 836 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Negative).isInfinity()); Decimal 837 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Negative).isNaN()); Decimal 838 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Negative).isPositive()); Decimal 839 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Negative).isNegative()); Decimal 840 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::zero(Negative).isSpecial()); Decimal 841 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::zero(Negative).isZero()); Decimal 843 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(123).isFinite()); Decimal 844 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(123).isInfinity()); Decimal 845 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(123).isNaN()); Decimal 846 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(123).isPositive()); Decimal 847 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(123).isNegative()); Decimal 848 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(123).isSpecial()); Decimal 849 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(123).isZero()); Decimal 851 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(-123).isFinite()); Decimal 852 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(-123).isInfinity()); Decimal 853 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(-123).isNaN()); Decimal 854 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(-123).isPositive()); Decimal 855 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal(-123).isNegative()); Decimal 856 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(-123).isSpecial()); Decimal 857 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal(-123).isZero()); Decimal 862 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isFinite()); Decimal 863 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Positive).isInfinity()); Decimal 864 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isNaN()); Decimal 865 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Positive).isPositive()); Decimal 866 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isNegative()); Decimal 867 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Positive).isSpecial()); Decimal 868 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Positive).isZero()); Decimal 870 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Negative).isFinite()); Decimal 871 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Negative).isInfinity()); Decimal 872 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Negative).isNaN()); Decimal 873 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Negative).isPositive()); Decimal 874 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Negative).isNegative()); Decimal 875 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::infinity(Negative).isSpecial()); Decimal 876 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::infinity(Negative).isZero()); Decimal 878 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::nan().isFinite()); Decimal 879 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::nan().isInfinity()); Decimal 880 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::nan().isNaN()); Decimal 881 Source/platform/DecimalTest.cpp EXPECT_TRUE(Decimal::nan().isSpecial()); Decimal 882 Source/platform/DecimalTest.cpp EXPECT_FALSE(Decimal::nan().isZero()); Decimal 916 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(10).remainder(3)); Decimal 917 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), Decimal(10).remainder(-3)); Decimal 918 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 0, Negative), Decimal(-10).remainder(3)); Decimal 919 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-1), Decimal(-10).remainder(-3)); Decimal 921 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, -1, Positive), Decimal(10).remainder(encode(3, -1, Positive))); Decimal 922 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), encode(36, -1, Positive).remainder(encode(13, -1, Positive))); Decimal 923 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(1, 87, Positive), (encode(1234, 100, Positive).remainder(Decimal(3)))); Decimal 924 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(500), (Decimal(500).remainder(1000))); Decimal 925 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-500), (Decimal(-500).remainder(1000))); Decimal 932 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), encode(1, 1022, Positive).remainder(encode(1, -1000, Positive))); Decimal 943 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).remainder(1)); Decimal 944 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Negative).remainder(1)); Decimal 945 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().remainder(1)); Decimal 947 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Positive).remainder(-1)); Decimal 948 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Negative).remainder(-1)); Decimal 949 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().remainder(-1)); Decimal 951 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).remainder(3)); Decimal 952 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Negative).remainder(3)); Decimal 953 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().remainder(3)); Decimal 955 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Positive).remainder(-1)); Decimal 956 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Negative).remainder(-1)); Decimal 957 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().remainder(-1)); Decimal 959 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal(1).remainder(Decimal::infinity(Positive))); Decimal 960 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal(1).remainder(Decimal::infinity(Negative))); Decimal 961 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal(1).remainder(Decimal::nan())); Decimal 966 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), (Decimal(9) / Decimal(10)).round()); Decimal 967 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(25), (Decimal(5) / fromString("0.200")).round()); Decimal 968 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(3), (Decimal(5) / Decimal(2)).round()); Decimal 969 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(1), (Decimal(2) / Decimal(3)).round()); Decimal 970 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(3), (Decimal(10) / Decimal(3)).round()); Decimal 971 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(3), (Decimal(1) / fromString("0.3")).round()); Decimal 972 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(10), (Decimal(1) / fromString("0.1")).round()); Decimal 973 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(5), (Decimal(1) / fromString("0.2")).round()); Decimal 974 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(10), (fromString("10.2") / 1).round()); Decimal 977 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(190002, -5, Positive).round()); Decimal 978 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(150002, -5, Positive).round()); Decimal 979 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(2), encode(150000, -5, Positive).round()); Decimal 980 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(12), encode(12492, -3, Positive).round()); Decimal 981 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(13), encode(12502, -3, Positive).round()); Decimal 983 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(190002, -5, Negative).round()); Decimal 984 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(150002, -5, Negative).round()); Decimal 985 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-2), encode(150000, -5, Negative).round()); Decimal 986 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-12), encode(12492, -3, Negative).round()); Decimal 987 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal(-13), encode(12502, -3, Negative).round()); Decimal 992 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Positive), Decimal::infinity(Positive).round()); Decimal 993 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::infinity(Negative), Decimal::infinity(Negative).round()); Decimal 994 Source/platform/DecimalTest.cpp EXPECT_EQ(Decimal::nan(), Decimal::nan().round()); Decimal 999 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(0) - Decimal(0)); Decimal 1000 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(3, 0, Positive), Decimal(2) - Decimal(-1)); Decimal 1001 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(3, 0, Negative), Decimal(-1) - Decimal(2)); Decimal 1002 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(98, 0, Positive), Decimal(99) - Decimal(1)); Decimal 1003 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(0, 0, Positive), Decimal(-50) - Decimal(-50)); Decimal 1004 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Positive), encode(1, 50, Positive) - Decimal(1)); Decimal 1005 Source/platform/DecimalTest.cpp EXPECT_EQ(encode(UINT64_C(1000000000000000), 35, Negative), Decimal(1) - encode(1, 50, Positive)); Decimal 1023 Source/platform/DecimalTest.cpp const Decimal Infinity(Decimal::infinity(Positive)); Decimal 1024 Source/platform/DecimalTest.cpp const Decimal MinusInfinity(Decimal::infinity(Negative)); Decimal 1025 Source/platform/DecimalTest.cpp const Decimal NaN(Decimal::nan()); Decimal 1026 Source/platform/DecimalTest.cpp const Decimal Ten(10); Decimal 1079 Source/platform/DecimalTest.cpp EXPECT_TRUE(std::isinf(Decimal::infinity(Decimal::Positive).toDouble())); Decimal 1080 Source/platform/DecimalTest.cpp EXPECT_TRUE(std::isinf(Decimal::infinity(Decimal::Negative).toDouble())); Decimal 1081 Source/platform/DecimalTest.cpp EXPECT_TRUE(std::isnan(Decimal::nan().toDouble())); Decimal 1086 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("0", Decimal::zero(Positive)); Decimal 1087 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("-0", Decimal::zero(Negative)); Decimal 1088 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("1", Decimal(1)); Decimal 1089 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("-1", Decimal(-1)); Decimal 1090 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("1234567", Decimal(1234567)); Decimal 1091 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("-1234567", Decimal(-1234567)); Decimal 1120 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("Infinity", Decimal::infinity(Positive)); Decimal 1121 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("-Infinity", Decimal::infinity(Negative)); Decimal 1122 Source/platform/DecimalTest.cpp EXPECT_DECIMAL_STREQ("NaN", Decimal::nan());