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

1 2

  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
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
19 www2.hursley.ibm.com/decimal/dectest.zip
32 from decimal import *
90 # Decimal behaves differently from decNumber for these testcases so these
148 # Name adapter to be able to change the Decimal and Context
189 # The following functions return True/False rather than a Decimal instance
206 """Class which tests the Decimal class against the test cases.
338 v = Decimal(v, self.context)
412 # The following classes test the behaviour of Decimal according to PEP 32
    [all...]
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...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
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
19 www2.hursley.ibm.com/decimal/dectest.zip
32 from decimal import *
90 # Decimal behaves differently from decNumber for these testcases so these
148 # Name adapter to be able to change the Decimal and Context
189 # The following functions return True/False rather than a Decimal instance
206 """Class which tests the Decimal class against the test cases.
338 v = Decimal(v, self.context)
412 # The following classes test the behaviour of Decimal according to PEP 32
    [all...]
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...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
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
19 www2.hursley.ibm.com/decimal/dectest.zip
32 from decimal import *
90 # Decimal behaves differently from decNumber for these testcases so these
148 # Name adapter to be able to change the Decimal and Context
189 # The following functions return True/False rather than a Decimal instance
206 """Class which tests the Decimal class against the test cases.
338 v = Decimal(v, self.context)
412 # The following classes test the behaviour of Decimal according to PEP 32
    [all...]
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...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
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
19 www2.hursley.ibm.com/decimal/dectest.zip
32 from decimal import *
90 # Decimal behaves differently from decNumber for these testcases so these
148 # Name adapter to be able to change the Decimal and Context
189 # The following functions return True/False rather than a Decimal instance
206 """Class which tests the Decimal class against the test cases.
338 v = Decimal(v, self.context)
412 # The following classes test the behaviour of Decimal according to PEP 32
    [all...]
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...]
  /external/parameter-framework/upstream/test/test-fixed-point-parameter/
Main.py 34 from decimal import Decimal
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(littleValue)
    [all...]
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/emr/
test_instance_group_args.py 5 # if bidprice is not specified, but allows float, int, Decimal.
7 from decimal import Decimal
34 Test InstanceGroup init works with bidprice type = Decimal.
37 'SPOT', 'master', bidprice=Decimal(1.10))
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/
test_decode.py 1 import decimal namespace
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'))
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/
test_decode.py 1 import decimal namespace
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/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb/
test_types.py 23 from decimal import Decimal
39 self.assertEqual(dynamizer.encode(Decimal('1.1')), {'N': '1.1'})
59 self.assertEqual(dynamizer.decode({'N': '1.1'}), Decimal('1.1'))
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/dynamodb/
types.py 28 from decimal import (Decimal, DecimalException, Context,
42 # http://docs.python.org/release/2.6.7/library/decimal.html#decimal-faq
45 numerator, denominator = Decimal(n), Decimal(d)
57 types = (int, long_type, float, Decimal, bool)
59 types = (int, long_type, float, Decimal)
283 if isinstance(attr, float) and not hasattr(Decimal, 'from_float'):
390 """Use float/int instead of Decimal for numeric types
    [all...]
  /prebuilts/gdb/darwin-x86/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/gdb/linux-x86/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/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/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
213 // Tests mocking a decimal function.
215 EXPECT_CALL(mock_foo_, Decimal(true, 'a', 0, 0, 1L, A<float>(),
219 EXPECT_EQ(5, foo_->Decimal(true, 'a', 0, 0, 1, 0, 0, 5, NULL, "hi"));
315 // Tests mocking a decimal function with calltype.
  /external/google-breakpad/src/testing/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.
  /external/valgrind/none/tests/s390x/
dfp-1.stdout.exp 0 Decimal floating point arithmetic

Completed in 508 milliseconds

1 2