HomeSort by relevance Sort by last modified time
    Searched refs:Decimal (Results 26 - 50 of 57) sorted by null

12 3

  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_fractions.py 3 from decimal import Decimal
167 _components(F(Decimal('1.1'))))
169 _components(F(Decimal('3.5e-2'))))
171 _components(F(Decimal('.000e20'))))
172 self.assertRaises(TypeError, F, Decimal('nan'))
173 self.assertRaises(TypeError, F, Decimal('snan'))
174 self.assertRaises(TypeError, F, Decimal('inf'))
175 self.assertRaises(TypeError, F, Decimal('-inf'))
279 self.assertEqual(F(0), F.from_decimal(Decimal("-0"))
    [all...]
test_tokenize.py 582 >>> from decimal import Decimal
585 "print +Decimal ('21.3e-5')*-Decimal ('.1234')/Decimal ('81.7')"
595 Output from calculations with Decimal should be identical across all
607 (NAME, 'Decimal'),
test_itertools.py 5 from decimal import Decimal
374 self.assertEqual(take(3, count(Decimal('1.1'), Decimal('.1'))),
375 [Decimal('1.1'), Decimal('1.2'), Decimal('1.3')])
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/forms/
DateInputType.cpp 75 return InputType::createStepRange(anyStepHandling, 0, Decimal::fromDouble(DateComponents::minimumDate()), Decimal::fromDouble(DateComponents::maximumDate()), stepDescription);
DateTimeLocalInputType.cpp 84 return InputType::createStepRange(anyStepHandling, 0, Decimal::fromDouble(DateComponents::minimumDateTime()), Decimal::fromDouble(DateComponents::maximumDateTime()), stepDescription);
  /external/chromium_org/third_party/WebKit/Source/core/html/shadow/
SliderThumbElement.cpp 55 inline static Decimal sliderPosition(HTMLInputElement* element)
58 const Decimal oldValue = parseToDecimalForNumberType(element->value(), stepRange.defaultValue());
285 const Decimal ratio = Decimal::fromDouble(static_cast<double>(position) / trackSize);
286 const Decimal fraction = isVertical || !isLeftToRightDirection ? Decimal(1) - ratio : ratio;
288 Decimal value = stepRange.clampValue(stepRange.valueFromProportion(fraction));
290 Decimal closest = input->findClosestTickMarkValue(value);
DateTimeEditElement.cpp 358 const Decimal decimalMsPerDay(static_cast<int>(msPerDay));
359 Decimal hourPartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerDay) / static_cast<int>(msPerHour)).floor();
368 const Decimal decimalMsPerSecond(static_cast<int>(msPerSecond));
377 const Decimal decimalMsPerHour(static_cast<int>(msPerHour));
378 Decimal minutePartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerHour) / static_cast<int>(msPerMinute)).floor();
387 const Decimal decimalMsPerMinute(static_cast<int>(msPerMinute));
388 Decimal secondPartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerMinute) / static_cast<int>(msPerSecond)).floor();
417 const Decimal msPerFieldUnitDecimal(static_cast<int>(msPerFieldUnit));
418 const Decimal msPerFieldSizeDecimal(static_cast<int>(msPerFieldSize));
419 Decimal stepMilliseconds = stepRange().step()
    [all...]
  /external/chromium_org/third_party/simplejson/
encoder.py 4 from decimal import Decimal
155 If use_decimal is true (not the default), ``decimal.Decimal`` will
157 with ``parse_float=decimal.Decimal``.
301 Decimal)
309 Decimal=Decimal)
352 Decimal=Decimal
    [all...]
__init__.py 71 >>> from decimal import Decimal
72 >>> json.loads('1.1', parse_float=Decimal) == Decimal('1.1')
109 from decimal import Decimal
189 If *use_decimal* is true (default: ``True``) then decimal.Decimal
286 If *use_decimal* is true (default: ``True``) then decimal.Decimal
    [all...]
_speedups.c 85 PyObject *Decimal;
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
decimal.py 21 This is a Py2.3 implementation of decimal floating point arithmetic based on
22 the General Decimal Arithmetic Specification:
24 http://speleotrove.com/decimal/decarith.html
30 Decimal floating point has finite precision with arbitrarily large bounds.
38 of the expected Decimal('0.00') returned by decimal floating point).
40 Here are some examples of using the decimal module:
42 >>> from decimal import *
44 >>> Decimal(0)
45 Decimal('0'
    [all...]
fractions.py 7 from decimal import Decimal
37 (?:\.(?P<decimal>\d*))? # an optional fractional part
59 - float and Decimal instances
89 >>> Fraction('-47e-2') # string may include a decimal exponent
95 >>> Fraction(Decimal('1.47'))
114 elif isinstance(numerator, Decimal):
132 decimal = m.group('decimal')
133 if decimal
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
decimal.py 21 This is a Py2.3 implementation of decimal floating point arithmetic based on
22 the General Decimal Arithmetic Specification:
24 http://speleotrove.com/decimal/decarith.html
30 Decimal floating point has finite precision with arbitrarily large bounds.
38 of the expected Decimal('0.00') returned by decimal floating point).
40 Here are some examples of using the decimal module:
42 >>> from decimal import *
44 >>> Decimal(0)
45 Decimal('0'
    [all...]
fractions.py 7 from decimal import Decimal
37 (?:\.(?P<decimal>\d*))? # an optional fractional part
59 - float and Decimal instances
89 >>> Fraction('-47e-2') # string may include a decimal exponent
95 >>> Fraction(Decimal('1.47'))
114 elif isinstance(numerator, Decimal):
132 decimal = m.group('decimal')
133 if decimal
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/
HTMLInputElement.h 75 bool getAllowedValueStep(Decimal*) const;
78 Decimal findClosestTickMarkValue(const Decimal&);
HTMLInputElement.cpp 289 bool HTMLInputElement::getAllowedValueStep(Decimal* step) const
299 Decimal HTMLInputElement::findClosestTickMarkValue(const Decimal& value)
    [all...]
  /external/chromium/testing/gmock/test/
gmock-generated-function-mockers_test.cc 84 virtual int Decimal(bool b, char c, short d, int e, long f, // NOLINT
127 MOCK_METHOD10(Decimal, int(bool, char, short, int, long, float, // NOLINT
201 // Tests mocking a decimal function.
203 EXPECT_CALL(mock_foo_, Decimal(true, 'a', 0, 0, 1L, A<float>(),
207 EXPECT_EQ(5, foo_->Decimal(true, 'a', 0, 0, 1, 0, 0, 5, NULL, "hi"));
292 // Tests mocking a decimal function with calltype.
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_tokenize.py 582 >>> from decimal import Decimal
585 "print +Decimal ('21.3e-5')*-Decimal ('.1234')/Decimal ('81.7')"
595 Output from calculations with Decimal should be identical across all
607 (NAME, 'Decimal'),
test_itertools.py 5 from decimal import Decimal
374 self.assertEqual(take(3, count(Decimal('1.1'), Decimal('.1'))),
375 [Decimal('1.1'), Decimal('1.2'), Decimal('1.3')])
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/
__init__.py 71 >>> from decimal import Decimal
72 >>> json.loads('1.1', parse_float=Decimal) == Decimal('1.1')
319 for JSON floats (e.g. decimal.Decimal).
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/
__init__.py 71 >>> from decimal import Decimal
72 >>> json.loads('1.1', parse_float=Decimal) == Decimal('1.1')
319 for JSON floats (e.g. decimal.Decimal).
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/
clike.js 252 builtin: words("Boolean Byte Char DateTime DateTimeOffset Decimal Double" +
254 " UInt64 bool byte char decimal double short int long object" +
  /external/chromium_org/third_party/WebKit/Source/platform/
blink_platform.target.darwin-arm.mk 57 third_party/WebKit/Source/platform/Decimal.cpp \
    [all...]
blink_platform.target.darwin-mips.mk 56 third_party/WebKit/Source/platform/Decimal.cpp \
    [all...]
blink_platform.target.darwin-x86.mk 56 third_party/WebKit/Source/platform/Decimal.cpp \
    [all...]

Completed in 364 milliseconds

12 3