Searched refs:Decimal (Results 1 - 21 of 21) sorted by relevance

/external/python/cpython2/Lib/test/
H A Dtest_decimal.py11 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 Dtest_fractions.py3 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 Dtest_itertools.py5 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 DMain.py34 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 Dtest_decode.py9 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 Ddecimal.py22 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 Dfractions.py7 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 Dgmock-generated-function-mockers_test.cc84 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 Ddfp-1.stdout.exp0 Decimal floating point arithmetic
/external/googletest/googlemock/test/
H A Dgmock-generated-function-mockers_test.cc83 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 Dgmock-generated-function-mockers_test.cc84 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 Dxfa_basic_data_element_properties.cpp395 {XFA_Element::Decimal, 1, 0},
442 {XFA_Element::Decimal, 1, XFA_PROPERTYFLAG_OneOf},
H A Dcxfa_widgetdata.cpp90 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 Dxfa_utils.cpp131 case XFA_Element::Decimal:
H A Dxfa_basic_data.cpp273 {0x54034c2f, L"decimal", XFA_Element::Decimal,
H A Dcxfa_node.cpp2033 } 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 Dgl_XML.py28 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 DGardenSnake.py7 # - numbers are decimal.Decimal instances (not integers or floats)
80 t.value = decimal.Decimal(t.value)
/external/pdfium/xfa/fxfa/app/
H A Dxfa_ffwidgethandler.cpp359 CreateValueNode(XFA_Element::Decimal, pField);
/external/pdfium/xfa/fxfa/
H A Dfxfa_basic.h741 Decimal, member in class:XFA_Element
/external/llvm/test/MC/PowerPC/
H A Dppc64-encoding-vmx.s936 # 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

Completed in 3134 milliseconds