| /external/python/cpython3/Lib/test/ |
| 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 19 http://speleotrove.com/decimal/dectest.zip 53 C = import_fresh_module('decimal', fresh=['_decimal']) 54 P = import_fresh_module('decimal', blocked=['_decimal']) 55 import decimal as orig_sys_decimal 57 # fractions module must import the correct decimal module. 59 sys.modules['decimal'] = P 61 sys.modules['decimal'] = C 63 sys.modules['decimal'] = orig_sys_decimal [all …]
|
| /external/rust/android-crates-io/crates/icu_capi/bindings/cpp/icu4x/ |
| D | Decimal.hpp | 4 #include "Decimal.d.hpp" 26 icu4x::capi::Decimal* icu4x_Decimal_from_int32_mv1(int32_t v); 28 icu4x::capi::Decimal* icu4x_Decimal_from_uint32_mv1(uint32_t v); 30 icu4x::capi::Decimal* icu4x_Decimal_from_int64_mv1(int64_t v); 32 icu4x::capi::Decimal* icu4x_Decimal_from_uint64_mv1(uint64_t v); 34 …cimal_from_double_with_integer_precision_mv1_result {union {icu4x::capi::Decimal* ok; }; bool is_o… 37 …Decimal_from_double_with_lower_magnitude_mv1_result {union {icu4x::capi::Decimal* ok; }; bool is_o… 40 …imal_from_double_with_significant_digits_mv1_result {union {icu4x::capi::Decimal* ok; }; bool is_o… 43 …al_from_double_with_round_trip_precision_mv1_result {union {icu4x::capi::Decimal* ok; }; bool is_o… 46 …typedef struct icu4x_Decimal_from_string_mv1_result {union {icu4x::capi::Decimal* ok; icu4x::capi:… [all …]
|
| D | Decimal.d.hpp | 14 namespace capi { struct Decimal; } 15 class Decimal; 27 struct Decimal; 32 class Decimal { class 35 inline static std::unique_ptr<icu4x::Decimal> from(int32_t v); 37 inline static std::unique_ptr<icu4x::Decimal> from(uint32_t v); 39 inline static std::unique_ptr<icu4x::Decimal> from(int64_t v); 41 inline static std::unique_ptr<icu4x::Decimal> from(uint64_t v); 43 …inline static diplomat::result<std::unique_ptr<icu4x::Decimal>, icu4x::FixedDecimalLimitError> fro… 45 …inline static diplomat::result<std::unique_ptr<icu4x::Decimal>, icu4x::FixedDecimalLimitError> fro… [all …]
|
| /external/mpdecimal/tests++/ |
| D | apitest.cc | 48 #include "decimal.hh" 53 using decimal::Context; 54 using decimal::context_template; 55 using decimal::context; 57 using decimal::ROUND_UP; 58 using decimal::ROUND_DOWN; 59 using decimal::ROUND_CEILING; 60 using decimal::ROUND_FLOOR; 61 using decimal::ROUND_HALF_UP; 62 using decimal::ROUND_HALF_DOWN; [all …]
|
| D | runtest.cc | 62 #include "decimal.hh" 67 using decimal::ValueError; 68 using decimal::MallocError; 69 using decimal::RuntimeError; 70 using decimal::InvalidOperation; 71 using decimal::Decimal; 72 using decimal::Context; 73 using decimal::context_template; 74 using decimal::context; 76 using decimal::util::safe_downcast; [all …]
|
| /external/python/cpython3/Lib/ |
| D | decimal.py | 1 """Decimal fixed-point and floating-point arithmetic. 3 This is an implementation of decimal floating-point arithmetic based on 4 the General Decimal Arithmetic Specification: 6 http://speleotrove.com/decimal/decarith.html 12 Decimal floating point has finite precision with arbitrarily large bounds. 20 of 0.0; Decimal('1.00') % Decimal('0.1') returns the expected 21 Decimal('0.00')). 23 Here are some examples of using the decimal module: 25 >>> from decimal import * 27 >>> Decimal(0) [all …]
|
| D | _pydecimal.py | 16 """Python decimal arithmetic module""" 20 'Decimal', 'Context', 54 __name__ = 'decimal' # For pickling 56 # See http://speleotrove.com/decimal/ 65 DecimalTuple = _namedtuple('DecimalTuple', 'sign digits exponent', module='decimal') 313 permitted in the Decimal() constructor, context.create_decimal() and 317 Decimal.from_float() or context.create_decimal_from_float() do not 378 The returned context manager creates a local decimal context 391 # General Decimal Arithmetic Specification 420 ##### Decimal class ####################################################### [all …]
|
| /external/rust/android-crates-io/crates/icu_capi/bindings/c/ |
| D | Decimal.h | 16 #include "Decimal.d.h" 23 Decimal* icu4x_Decimal_from_int32_mv1(int32_t v); 25 Decimal* icu4x_Decimal_from_uint32_mv1(uint32_t v); 27 Decimal* icu4x_Decimal_from_int64_mv1(int64_t v); 29 Decimal* icu4x_Decimal_from_uint64_mv1(uint64_t v); 31 typedef struct icu4x_Decimal_from_double_with_integer_precision_mv1_result {union {Decimal* ok; }; … 34 typedef struct icu4x_Decimal_from_double_with_lower_magnitude_mv1_result {union {Decimal* ok; }; bo… 37 typedef struct icu4x_Decimal_from_double_with_significant_digits_mv1_result {union {Decimal* ok; };… 40 typedef struct icu4x_Decimal_from_double_with_round_trip_precision_mv1_result {union {Decimal* ok; … 43 typedef struct icu4x_Decimal_from_string_mv1_result {union {Decimal* ok; FixedDecimalParseError err… [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | decimal.rst | 1 :mod:`!decimal` --- Decimal fixed-point and floating-point arithmetic 4 .. module:: decimal 5 :synopsis: Implementation of the General Decimal Arithmetic Specification. 15 **Source code:** :source:`Lib/decimal.py` 20 import decimal 22 from decimal import * 33 The :mod:`decimal` module provides support for fast correctly rounded 34 decimal floating-point arithmetic. It offers several advantages over the 37 * Decimal "is based on a floating-point model which was designed with people 40 people learn at school." -- excerpt from the decimal arithmetic specification. [all …]
|
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
| D | BERTags.java | 15 public static final int ENUMERATED = 0x0a; // decimal 10 16 public static final int EMBEDDED_PDV = 0x0b; // decimal 11 17 public static final int UTF8_STRING = 0x0c; // decimal 12 18 public static final int RELATIVE_OID = 0x0d; // decimal 13 21 public static final int SEQUENCE = 0x10; // decimal 16 23 public static final int SET = 0x11; // decimal 17 25 public static final int NUMERIC_STRING = 0x12; // decimal 18 26 public static final int PRINTABLE_STRING = 0x13; // decimal 19 27 public static final int T61_STRING = 0x14; // decimal 20 28 public static final int VIDEOTEX_STRING = 0x15; // decimal 21 [all …]
|
| /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
| D | BERTags.java | 19 public static final int ENUMERATED = 0x0a; // decimal 10 20 public static final int EMBEDDED_PDV = 0x0b; // decimal 11 21 public static final int UTF8_STRING = 0x0c; // decimal 12 22 public static final int RELATIVE_OID = 0x0d; // decimal 13 25 public static final int SEQUENCE = 0x10; // decimal 16 27 public static final int SET = 0x11; // decimal 17 29 public static final int NUMERIC_STRING = 0x12; // decimal 18 30 public static final int PRINTABLE_STRING = 0x13; // decimal 19 31 public static final int T61_STRING = 0x14; // decimal 20 32 public static final int VIDEOTEX_STRING = 0x15; // decimal 21 [all …]
|
| /external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
| D | BERTags.java | 19 public static final int ENUMERATED = 0x0a; // decimal 10 20 public static final int EMBEDDED_PDV = 0x0b; // decimal 11 21 public static final int UTF8_STRING = 0x0c; // decimal 12 22 public static final int RELATIVE_OID = 0x0d; // decimal 13 25 public static final int SEQUENCE = 0x10; // decimal 16 27 public static final int SET = 0x11; // decimal 17 29 public static final int NUMERIC_STRING = 0x12; // decimal 18 30 public static final int PRINTABLE_STRING = 0x13; // decimal 19 31 public static final int T61_STRING = 0x14; // decimal 20 32 public static final int VIDEOTEX_STRING = 0x15; // decimal 21 [all …]
|
| /external/rust/android-crates-io/crates/icu_capi/src/ |
| D | fixed_decimal.rs | 19 #[diplomat::rust_link(fixed_decimal::Decimal, Typedef, hidden)] 20 pub struct Decimal(pub fixed_decimal::Decimal); struct 69 impl Decimal { implementation 70 /// Construct an [`Decimal`] from an integer. 76 pub fn from_int32(v: i32) -> Box<Decimal> { in from_int32() argument 77 Box::new(Decimal(fixed_decimal::Decimal::from(v))) in from_int32() 80 /// Construct an [`Decimal`] from an integer. 86 pub fn from_uint32(v: u32) -> Box<Decimal> { in from_uint32() argument 87 Box::new(Decimal(fixed_decimal::Decimal::from(v))) in from_uint32() 90 /// Construct an [`Decimal`] from an integer. [all …]
|
| /external/mpdecimal/libmpdec++/ |
| D | decimal.hh | 73 namespace decimal { namespace 139 /* Decimal Exceptions */ 528 /* Decimal object */ 533 class Decimal { class 619 ALWAYS_INLINE Decimal unary_func_status( in unary_func_status() 621 Decimal result; in unary_func_status() 629 ALWAYS_INLINE Decimal unary_func( in unary_func() 632 Decimal result; in unary_func() 639 ALWAYS_INLINE Decimal binary_func_noctx( in binary_func_noctx() 641 const Decimal& other) const { in binary_func_noctx() [all …]
|
| D | decimal.cc | 35 #include "decimal.hh" 45 LibraryInit() { mpd_setminalloc(decimal::MINALLOC); } in LibraryInit() 73 … MPD_IEEE_Invalid_operation, "IEEEInvalidOperation", "decimal::IEEEInvalidOperation", raise<decima… 74 …{ MPD_Division_by_zero, "DivisionByZero", "decimal::DivisionByZero", raise<decimal::DivisionByZero… 75 { MPD_Overflow, "Overflow", "decimal::Overflow", raise<decimal::Overflow> }, 76 { MPD_Underflow, "Underflow", "decimal::Underflow", raise<decimal::Underflow> }, 77 { MPD_Subnormal, "Subnormal", "decimal::Subnormal", raise<decimal::Subnormal> }, 78 { MPD_Inexact, "Inexact", "decimal::Inexact", raise<decimal::Inexact> }, 79 { MPD_Rounded, "Rounded", "decimal::Rounded", raise<decimal::Rounded> }, 80 { MPD_Clamped, "Clamped", "decimal::Clamped", raise<decimal::Clamped> }, [all …]
|
| /external/sdk-platform-java/java-common-protos/proto-google-common-protos/src/main/java/com/google/type/ |
| D | Decimal.java | 17 // source: google/type/decimal.proto 25 * A representation of a decimal value, such as 2.5. Clients may convert values 26 * into language-native decimal formats, such as Java's [BigDecimal][] or 27 * Python's [decimal.Decimal][]. 30 * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html 33 * Protobuf type {@code google.type.Decimal} 35 public final class Decimal extends com.google.protobuf.GeneratedMessageV3 class 37 // @@protoc_insertion_point(message_implements:google.type.Decimal) 40 // Use Decimal.newBuilder() to construct. 41 private Decimal(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Decimal() method in Decimal [all …]
|
| /external/cldr/common/supplemental/ |
| D | plurals.xml | 17 …<pluralRule count="other"> @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1.5, 1… 23 … <pluralRule count="one">i = 0 or n = 1 @integer 0, 1 @decimal 0.0~1.0, 0.00~0.04</pluralRule> 24 …<pluralRule count="other"> @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 1.1~2.6, 1… 27 <pluralRule count="one">i = 0,1 @integer 0, 1 @decimal 0.0~1.5</pluralRule> 28 …<pluralRule count="other"> @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 2.0~3.5, 1… 32 …e count="other"> @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1.5, 10.0, 10… 35 …<pluralRule count="one">n = 0,1 or i = 0 and f = 1 @integer 0, 1 @decimal 0.0, 0.1, 1.0, 0.00, 0.0… 36 …<pluralRule count="other"> @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 0.2~0.9, 1… 39 …<pluralRule count="one">n = 0..1 @integer 0, 1 @decimal 0.0, 1.0, 0.00, 1.00, 0.000, 1.000, 0.0000… 40 …<pluralRule count="other"> @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 0.1~0.9, 1… [all …]
|
| /external/icu/icu4c/source/data/locales/ |
| D | oc_ES.txt | 20 decimal{"."} 52 decimal{"."} 67 decimal{"."} 82 decimal{"."} 97 decimal{"."} 112 decimal{"."} 127 decimal{"."} 142 decimal{"."} 157 decimal{"."} 172 decimal{"."} [all …]
|
| /external/cronet/tot/third_party/icu/source/data/locales/ |
| D | oc_ES.txt | 20 decimal{"."} 52 decimal{"."} 67 decimal{"."} 82 decimal{"."} 97 decimal{"."} 112 decimal{"."} 127 decimal{"."} 142 decimal{"."} 157 decimal{"."} 172 decimal{"."} [all …]
|
| /external/cronet/stable/third_party/icu/source/data/locales/ |
| D | oc_ES.txt | 20 decimal{"."} 52 decimal{"."} 67 decimal{"."} 82 decimal{"."} 97 decimal{"."} 112 decimal{"."} 127 decimal{"."} 142 decimal{"."} 157 decimal{"."} 172 decimal{"."} [all …]
|
| /external/cronet/tot/third_party/icu/source/data/misc/ |
| D | plurals.txt | 337 " @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1." 342 one{"i = 0 or n = 1 @integer 0, 1 @decimal 0.0~1.0, 0.00~0.04"} 344 " @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 1.1~2." 351 "11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1" 355 " @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0" 364 "00, 10000, 100000, 1000000, … @decimal 0.0~0.3, 0.5, 0.7, 0.8, 1.0~1" 369 " @integer 4, 6, 9, 14, 16, 19, 24, 26, 104, 1004, … @decimal 0.4, 0." 377 "101, 1001, … @decimal 0.1, 1.0, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 1" 381 " @integer 2~9, 22~29, 102, 1002, … @decimal 0.2~0.9, 1.2~1.9, 10.2, " 392 one{"i = 0,1 and n != 0 @integer 1 @decimal 0.1~1.6"} [all …]
|
| /external/cronet/stable/third_party/icu/source/data/misc/ |
| D | plurals.txt | 337 " @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1." 342 one{"i = 0 or n = 1 @integer 0, 1 @decimal 0.0~1.0, 0.00~0.04"} 344 " @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 1.1~2." 351 "11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1" 355 " @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0" 364 "00, 10000, 100000, 1000000, … @decimal 0.0~0.3, 0.5, 0.7, 0.8, 1.0~1" 369 " @integer 4, 6, 9, 14, 16, 19, 24, 26, 104, 1004, … @decimal 0.4, 0." 377 "101, 1001, … @decimal 0.1, 1.0, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 1" 381 " @integer 2~9, 22~29, 102, 1002, … @decimal 0.2~0.9, 1.2~1.9, 10.2, " 392 one{"i = 0,1 and n != 0 @integer 1 @decimal 0.1~1.6"} [all …]
|
| /external/icu/icu4c/source/data/misc/ |
| D | plurals.txt | 340 " @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1." 345 one{"i = 0 or n = 1 @integer 0, 1 @decimal 0.0~1.0, 0.00~0.04"} 347 " @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 1.1~2." 354 "11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1" 358 " @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0" 367 "00, 10000, 100000, 1000000, … @decimal 0.0~0.3, 0.5, 0.7, 0.8, 1.0~1" 372 " @integer 4, 6, 9, 14, 16, 19, 24, 26, 104, 1004, … @decimal 0.4, 0." 380 "101, 1001, … @decimal 0.1, 1.0, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 1" 384 " @integer 2~9, 22~29, 102, 1002, … @decimal 0.2~0.9, 1.2~1.9, 10.2, " 395 one{"i = 0,1 and n != 0 @integer 1 @decimal 0.1~1.6"} [all …]
|
| /external/rust/android-crates-io/crates/litrs/src/integer/ |
| D | tests.rs | 50 check("0", 0u128, Decimal, "0", None); in parse_decimal() 51 check("1", 1u8, Decimal, "1", None); in parse_decimal() 52 check("8", 8u16, Decimal, "8", None); in parse_decimal() 53 check("9", 9u32, Decimal, "9", None); in parse_decimal() 54 check("10", 10u64, Decimal, "10", None); in parse_decimal() 55 check("11", 11i8, Decimal, "11", None); in parse_decimal() 56 check("123456789", 123456789i128, Decimal, "123456789", None); in parse_decimal() 58 check("05", 5i16, Decimal, "05", None); in parse_decimal() 59 check("00005", 5i32, Decimal, "00005", None); in parse_decimal() 60 check("0123456789", 123456789i64, Decimal, "0123456789", None); in parse_decimal() [all …]
|
| /external/mpdecimal/libmpdec++/examples/ |
| D | factorial.cc | 30 #include "decimal.hh" 33 using decimal::Decimal; 34 using decimal::MaxContext; 35 using decimal::context; 37 using decimal::ConversionSyntax; 38 using decimal::InvalidOperation; 39 using decimal::MallocError; 41 using decimal::DecRounded; 42 using decimal::DecInexact; 45 Decimal [all …]
|