/external/chromium_org/third_party/simplejson/ |
__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...] |
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...] |
_speedups.c | 85 PyObject *Decimal; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/parser/ |
HTMLEntityParser.cpp | 168 Decimal, 203 entityState = Decimal; 241 case Decimal: {
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
Decimal.h | 45 // This class represents decimal base floating point number. 47 // FIXME: Once all C++ compiler support decimal type, we should replace this 48 // class to compiler supported one. See below URI for current status of decimal 50 class PLATFORM_EXPORT Decimal { 61 friend class Decimal; 97 Decimal(int32_t = 0); 98 Decimal(Sign, int exponent, uint64_t coefficient); 99 Decimal(const Decimal&); 101 Decimal& operator=(const Decimal&) [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...] |