/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))
|
/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/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/boto/fps/ |
response.py | 24 from decimal import Decimal 97 value = Decimal(value)
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/dynamodb/ |
test_layer2.py | 28 from decimal import Decimal 458 item['decimalvalue'] = Decimal('1.12345678912345') 461 self.assertEqual(retrieved['decimalvalue'], Decimal('1.12345678912345')) 481 item['decimalvalue'] = Decimal('129271300103398600') 484 self.assertEqual(retrieved['decimalvalue'], Decimal('129271300103398600'))
|
/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/ |
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...] |
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...] |
/prebuilts/gdb/darwin-x86/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_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/gdb/linux-x86/lib/python2.7/ |
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...] |
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...] |
/prebuilts/gdb/linux-x86/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_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/ |
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...] |
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...] |
/prebuilts/python/darwin-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_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/linux-x86/2.7.5/lib/python2.7/ |
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...] |
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...] |
/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_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-trace/catapult/third_party/gsutil/third_party/boto/boto/mws/ |
response.py | 19 from decimal import Decimal 377 value = Decimal(value) 405 value = Decimal(value) 431 value = Decimal(value or '0')
|