/external/python/cpython2/Lib/test/ |
H A D | test_decimal.py | 11 These are the test cases for the Decimal module. 14 the Decimal arithmetic using the tests provided by Mike Cowlishaw. The latter 91 # Decimal behaves differently from decNumber for these testcases so these 149 # Name adapter to be able to change the Decimal and Context 190 # The following functions return True/False rather than a Decimal instance 207 """Class which tests the Decimal class against the test cases. 337 v = Decimal(v, self.context) 410 # The following classes test the behaviour of Decimal according to PEP 327 413 '''Unit tests for Explicit Construction cases of Decimal.''' 416 self.assertEqual(Decimal(), Decima [all...] |
H A D | test_fractions.py | 3 from decimal import Decimal namespace 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"))) 280 self.assertEqual(F(5, 10), F.from_decimal(Decimal("0. [all...] |
H A D | test_itertools.py | 5 from decimal import Decimal namespace 358 self.assertEqual(take(3, count(Decimal('1.1'))), 359 [Decimal('1.1'), Decimal('2.1'), Decimal('3.1')]) 407 self.assertEqual(take(3, count(Decimal('1.1'), Decimal('.1'))), 408 [Decimal('1.1'), Decimal('1.2'), Decimal('1. [all...] |
/external/parameter-framework/upstream/test/test-fixed-point-parameter/ |
H A D | Main.py | 34 from decimal import Decimal namespace 83 Decimal(0), 84 Decimal(self._lowerAllowedBound), 85 Decimal(self._upperAllowedBound) 93 Decimal(self._lowerAllowedBound) - Decimal(bigValue), 94 Decimal(self._upperAllowedBound) + Decimal(bigValue), 95 Decimal(self._lowerAllowedBound) - Decimal(littleValu [all...] |
/external/python/cpython2/Lib/json/tests/ |
H A D | test_decode.py | 9 rval = self.loads('1.1', parse_float=decimal.Decimal) 10 self.assertTrue(isinstance(rval, decimal.Decimal)) 11 self.assertEqual(rval, decimal.Decimal('1.1'))
|
/external/python/cpython2/Lib/ |
H A D | decimal.py | 22 the General Decimal Arithmetic Specification: 30 Decimal floating point has finite precision with arbitrarily large bounds. 38 of the expected Decimal('0.00') returned by decimal floating point). 44 >>> Decimal(0) 45 Decimal('0') 46 >>> Decimal('1') 47 Decimal('1') 48 >>> Decimal('-.0123') 49 Decimal('-0.0123') 50 >>> Decimal(12345 505 class Decimal(object): class in inherits:object [all...] |
H A D | fractions.py | 7 from decimal import Decimal namespace 59 - float and Decimal instances 95 >>> Fraction(Decimal('1.47')) 114 elif isinstance(numerator, Decimal): 186 """Converts a finite Decimal instance to a rational number, exactly.""" 187 from decimal import Decimal namespace 189 dec = Decimal(int(dec)) 190 elif not isinstance(dec, Decimal):
|
/external/google-breakpad/src/testing/test/ |
H A D | 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 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"));
|
/external/valgrind/none/tests/s390x/ |
H A D | dfp-1.stdout.exp | 0 Decimal floating point arithmetic
|
/external/googletest/googlemock/test/ |
H A D | gmock-generated-function-mockers_test.cc | 83 virtual int Decimal(bool b, char c, short d, int e, long f, // NOLINT 135 MOCK_METHOD10(Decimal, int(bool, char, short, int, long, float, // NOLINT 228 EXPECT_CALL(mock_foo_, Decimal(true, 'a', 0, 0, 1L, A<float>(), 232 EXPECT_EQ(5, foo_->Decimal(true, 'a', 0, 0, 1, 0, 0, 5, NULL, "hi"));
|
/external/v8/testing/gmock/test/ |
H A D | gmock-generated-function-mockers_test.cc | 84 virtual int Decimal(bool b, char c, short d, int e, long f, // NOLINT 135 MOCK_METHOD10(Decimal, int(bool, char, short, int, long, float, // NOLINT 226 EXPECT_CALL(mock_foo_, Decimal(true, 'a', 0, 0, 1L, A<float>(), 230 EXPECT_EQ(5, foo_->Decimal(true, 'a', 0, 0, 1, 0, 0, 5, NULL, "hi"));
|
/external/pdfium/xfa/fxfa/parser/ |
H A D | xfa_basic_data_element_properties.cpp | 395 {XFA_Element::Decimal, 1, 0}, 442 {XFA_Element::Decimal, 1, XFA_PROPERTYFLAG_OneOf},
|
H A D | cxfa_widgetdata.cpp | 90 case XFA_Element::Decimal: 1466 if (CXFA_Node* pChild = pNode->GetChild(0, XFA_Element::Decimal)) 1475 if (CXFA_Node* pChild = pNode->GetChild(0, XFA_Element::Decimal)) 1761 case XFA_Element::Decimal:
|
H A D | xfa_utils.cpp | 131 case XFA_Element::Decimal:
|
H A D | xfa_basic_data.cpp | 273 {0x54034c2f, L"decimal", XFA_Element::Decimal,
|
H A D | cxfa_node.cpp | 2033 } else if (eType == XFA_Element::Float || eType == XFA_Element::Decimal) { 2250 if (pNode && pNode->GetElementType() == XFA_Element::Decimal) {
|
/external/mesa3d/src/mapi/glapi/gen/ |
H A D | gl_XML.py | 28 from decimal import Decimal namespace 618 # Decimal('1.1') }. 626 # Decimal('1.1') }. 663 version_decimal = Decimal(version_str) 675 self.deprecated = Decimal(deprecated) 825 Use the decimal.Decimal type to precisely express non-integer
|
/external/ply/ply/example/GardenSnake/ |
H A D | GardenSnake.py | 7 # - numbers are decimal.Decimal instances (not integers or floats) 80 t.value = decimal.Decimal(t.value)
|
/external/pdfium/xfa/fxfa/app/ |
H A D | xfa_ffwidgethandler.cpp | 359 CreateValueNode(XFA_Element::Decimal, pField);
|
/external/pdfium/xfa/fxfa/ |
H A D | fxfa_basic.h | 741 Decimal, member in class:XFA_Element
|
/external/llvm/test/MC/PowerPC/ |
H A D | ppc64-encoding-vmx.s | 936 # Decimal Convert From/to National/Zoned/Signed-QWord 956 # Decimal Copy-Sign/Set-Sign 964 # Decimal Shift/Unsigned-Shift/Shift-and-Round 975 # Decimal (Unsigned) Truncate
|