/third_party/boost/libs/units/example/ |
D | systems.cpp | 241 quantity<arcsecond_plane_angle> as(1.0*arcseconds); in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 242 quantity<arcminute_plane_angle> am(1.0*arcminutes); in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 243 quantity<degree_plane_angle> d(1.0*degrees); in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 244 quantity<gradian_plane_angle> g(1.0*gradians); in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 245 quantity<radian_plane_angle> r(1.0*radians); in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 246 quantity<revolution_plane_angle> rev(1.0*revolutions); in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 248 std::cout << as << " = " << quantity<si::plane_angle>(as) << std::endl in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 249 << am << " = " << quantity<si::plane_angle>(am) << std::endl in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 250 << d << " = " << quantity<si::plane_angle>(d) << std::endl in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() 251 << g << " = " << quantity<si::plane_angle>(g) << std::endl in BOOST_UNITS_DEFINE_SINGLE_UNIT_SYSTEM() [all …]
|
D | kitchen_sink.cpp | 204 quantity<unit<energy_dimension,System>,Y> 205 work(quantity<unit<force_dimension,System>,Y> F, in work() 206 quantity<unit<length_dimension,System>,Y> dx) in work() 216 quantity<si::amount,Y> 217 idealGasLaw(const quantity<si::pressure,Y>& P, in idealGasLaw() 218 const quantity<si::volume,Y>& V, in idealGasLaw() 219 const quantity<si::temperature,Y>& T) in idealGasLaw() 250 quantity<force> q1(1.0*u1); in main() 251 quantity<energy> q2(2.0*u2); in main() 331 quantity<length> l1(1.0*meter), in main() [all …]
|
D | conversion.cpp | 65 quantity<si::length> L1 = quantity<si::length,int>(int(2.5)*si::meters); in main() 66 quantity<si::length,int> L2(quantity<si::length,double>(2.5*si::meters)); in main() 70 quantity<si::length,int> L3 = static_cast<quantity<si::length,int> >(L1); in main() 74 quantity<cgs::length> L4 = static_cast<quantity<cgs::length> >(L1); in main() 77 quantity<si::length,int> L5(4*si::meters), in main() 79 quantity<cgs::length> L7(L1); in main() 96 quantity<si::volume> vs(1.0*pow<3>(si::meter)); in main() 97 quantity<cgs::volume> vc(vs); in main() 98 quantity<si::volume> vs2(vc); in main() 100 quantity<si::energy> es(1.0*si::joule); in main() [all …]
|
D | radar_beam_height.cpp | 47 using boost::units::quantity; 104 quantity<unit<boost::units::length_dimension,System>,T> 105 radar_beam_height(const quantity<unit<length_dimension,System>,T>& radar_range, in radar_beam_height() 106 const quantity<unit<length_dimension,System>,T>& earth_radius, in radar_beam_height() 109 return quantity<unit<length_dimension,System>,T> in radar_beam_height() 118 radar_beam_height(const quantity<unit<length_dimension,System1>,T>& radar_range, in radar_beam_height() 119 const quantity<unit<length_dimension,System2>,T>& earth_radius, in radar_beam_height() 130 quantity<imperial::length> 131 radar_beam_height(const quantity<nautical::length>& range) in radar_beam_height() 133 return quantity<imperial::length> in radar_beam_height() [all …]
|
D | lambda.cpp | 69 bu::quantity<si::acceleration> a = 2.0 * si::meters_per_second_squared; in main() 70 bu::quantity<si::velocity> v = 1.0 * si::meters_per_second; in main() 71 bu::quantity<si::length> s0 = 0.5 * si::meter; in main() 74 boost::function<bu::quantity<si::length> (bu::quantity<si::time>) > in main() 99 const bu::quantity<si::current> iamp = 1.5 * si::ampere; in main() 100 const bu::quantity<si::frequency> f = 1.0e3 * si::hertz; in main() 101 const bu::quantity<si::current> i0 = 0.5 * si::ampere; in main() 107 boost::function<bu::quantity<si::current> (bu::quantity<si::time>) > in main() 109 …cast<bu::dimensionless_quantity<si::system, double>::type (*)(const bu::quantity<si::plane_angle>&… in main() 124 const bu::quantity<si::length> l = 1.5 * si::meter; in main() [all …]
|
/third_party/boost/boost/units/ |
D | cmath.hpp | 52 isfinite BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) in BOOST_PREVENT_MACRO_SUBSTITUTION() 62 isinf BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) in BOOST_PREVENT_MACRO_SUBSTITUTION() 72 isnan BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) in BOOST_PREVENT_MACRO_SUBSTITUTION() 82 isnormal BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q) in BOOST_PREVENT_MACRO_SUBSTITUTION() 92 isgreater BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q1, in BOOST_PREVENT_MACRO_SUBSTITUTION() 93 const quantity<Unit,Y>& q2) in BOOST_PREVENT_MACRO_SUBSTITUTION() 103 isgreaterequal BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q1, in BOOST_PREVENT_MACRO_SUBSTITUTION() 104 const quantity<Unit,Y>& q2) in BOOST_PREVENT_MACRO_SUBSTITUTION() 114 isless BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q1, in BOOST_PREVENT_MACRO_SUBSTITUTION() 115 const quantity<Unit,Y>& q2) in BOOST_PREVENT_MACRO_SUBSTITUTION() [all …]
|
D | quantity.hpp | 89 class quantity class 94 typedef void (quantity::*unspecified_null_pointer_constant_type)(int*******); 96 typedef quantity<Unit,Y> this_type; 101 BOOST_CONSTEXPR quantity() : val_() in quantity() function in boost::units::quantity 106 BOOST_CONSTEXPR quantity(unspecified_null_pointer_constant_type) : val_() in quantity() function in boost::units::quantity 111 BOOST_CONSTEXPR quantity(const this_type& source) : val_(source.val_) in quantity() function in boost::units::quantity 120 ~quantity() { in ~quantity() 138 BOOST_CONSTEXPR quantity(const quantity<Unit,YY>& source, in quantity() function in boost::units::quantity 147 explicit BOOST_CONSTEXPR quantity(const quantity<Unit,YY>& source, in quantity() function in boost::units::quantity 158 BOOST_CONSTEXPR quantity(const quantity<Unit,YY>& source) : in quantity() function in boost::units::quantity [all …]
|
/third_party/boost/boost/units/systems/si/codata/ |
D | electron_constants.hpp | 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_e,quantity<mass>,9.10938215e-31*kilograms,4.5e-38*kilograms); 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_mu,quantity<dimensionless>,4.83633171e-3*dimensionless(),1… 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_tau,quantity<dimensionless>,2.87564e-4*dimensionless(),4.7… 54 BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_p,quantity<dimensionless>,5.4461702177e-4*dimensionless(),… 56 BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_n,quantity<dimensionless>,5.4386734459e-4*dimensionless(),… 58 BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_d,quantity<dimensionless>,2.7244371093e-4*dimensionless(),… 60 BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_alpha,quantity<dimensionless>,1.37093355570e-4*dimensionle… 62 BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_e,quantity<electric_charge_over_mass>,1.758820150e11*coulomb… 64 BOOST_UNITS_PHYSICAL_CONSTANT(M_e,quantity<mass_over_amount>,5.4857990943e-7*kilograms/mole,2.3e-16… 66 BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C,quantity<length>,2.4263102175e-12*meters,3.3e-21*meters); [all …]
|
D | proton_constants.hpp | 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_p,quantity<mass>,1.672621637e-27*kilograms,8.3e-35*kilograms); 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_e,quantity<dimensionless>,1836.15267247*dimensionless(),8.… 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_mu,quantity<dimensionless>,8.88024339*dimensionless(),2.3e… 54 BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_tau,quantity<dimensionless>,0.528012*dimensionless(),8.6e-… 56 BOOST_UNITS_PHYSICAL_CONSTANT(m_p_over_m_n,quantity<dimensionless>,0.99862347824*dimensionless(),4.… 58 BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_p,quantity<electric_charge_over_mass>,9.57883392e7*coulombs/… 60 BOOST_UNITS_PHYSICAL_CONSTANT(M_p,quantity<mass_over_amount>,1.00727646677e-3*kilograms/mole,1.0e-1… 62 BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_p,quantity<length>,1.3214098446e-15*meters,1.9e-24*meters); 64 BOOST_UNITS_PHYSICAL_CONSTANT(R_p,quantity<length>,0.8768e-15*meters,6.9e-18*meters); 66 BOOST_UNITS_PHYSICAL_CONSTANT(mu_p,quantity<energy_over_magnetic_flux_density>,1.410606662e-26*joul… [all …]
|
D | neutron_constants.hpp | 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_n,quantity<mass>,1.674927211e-27*kilograms,8.4e-35*kilograms); 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_e,quantity<dimensionless>,1838.6836605*dimensionless(),1.1… 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_mu,quantity<dimensionless>,8.89248409*dimensionless(),2.3e… 54 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_tau,quantity<dimensionless>,0.528740*dimensionless(),8.6e-… 56 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_p,quantity<dimensionless>,1.00137841918*dimensionless(),4.… 58 BOOST_UNITS_PHYSICAL_CONSTANT(M_n,quantity<mass_over_amount>,1.00866491597e-3*kilograms/mole,4.3e-1… 60 BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_n,quantity<length>,1.3195908951e-15*meters,2.0e-24*meters); 62 BOOST_UNITS_PHYSICAL_CONSTANT(mu_n,quantity<energy_over_magnetic_flux_density>,-0.96623641e-26*joul… 64 BOOST_UNITS_PHYSICAL_CONSTANT(g_n,quantity<dimensionless>,-3.82608545*dimensionless(),9.0e-7*dimens… 66 BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_e,quantity<dimensionless>,1.04066882e-3*dimensionless(),… [all …]
|
D | muon_constants.hpp | 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_mu,quantity<mass>,1.88353130e-28*kilograms,1.1e-35*kilograms); 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_e,quantity<dimensionless>,206.7682823*dimensionless(),5.2… 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_tau,quantity<dimensionless>,5.94592e-2*dimensionless(),9.… 54 BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_p,quantity<dimensionless>,0.1126095261*dimensionless(),2.… 56 BOOST_UNITS_PHYSICAL_CONSTANT(m_mu_over_m_n,quantity<dimensionless>,0.1124545167*dimensionless(),2.… 58 BOOST_UNITS_PHYSICAL_CONSTANT(M_mu,quantity<mass_over_amount>,0.1134289256e-3*kilograms/mole,2.9e-1… 60 BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_mu,quantity<length>,11.73444104e-15*meters,3.0e-22*meters); 62 BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu,quantity<energy_over_magnetic_flux_density>,-4.49044786e-26*jou… 64 BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_B,quantity<dimensionless>,-4.84197049e-3*dimensionless(… 66 BOOST_UNITS_PHYSICAL_CONSTANT(mu_mu_over_mu_N,quantity<dimensionless>,-8.89059705*dimensionless(),2… [all …]
|
D | deuteron_constants.hpp | 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_d,quantity<mass>,3.34358320e-27*kilograms,1.7e-34*kilograms); 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_e,quantity<dimensionless>,3670.4829654*dimensionless(),1.6… 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_p,quantity<dimensionless>,1.99900750108*dimensionless(),2.… 54 BOOST_UNITS_PHYSICAL_CONSTANT(M_d,quantity<mass_over_amount>,2.013553212724e-3*kilograms/mole,7.8e-… 56 BOOST_UNITS_PHYSICAL_CONSTANT(R_d,quantity<length>,2.1402e-15*meters,2.8e-18*meters); 58 BOOST_UNITS_PHYSICAL_CONSTANT(mu_d,quantity<energy_over_magnetic_flux_density>,0.433073465e-26*joul… 60 BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_B,quantity<dimensionless>,0.4669754556e-3*dimensionless(… 62 BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_N,quantity<dimensionless>,0.8574382308*dimensionless(),7… 64 BOOST_UNITS_PHYSICAL_CONSTANT(g_d,quantity<dimensionless>,0.8574382308*dimensionless(),7.2e-9*dimen… 66 BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_e,quantity<dimensionless>,-4.664345537e-4*dimensionless(… [all …]
|
D | triton_constants.hpp | 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_t,quantity<mass>,5.00735588e-27*kilograms,2.5e-34*kilograms); 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_t_over_m_e,quantity<dimensionless>,5496.9215269*dimensionless(),5.1… 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_t_over_m_p,quantity<dimensionless>,2.9937170309*dimensionless(),2.5… 54 BOOST_UNITS_PHYSICAL_CONSTANT(M_t,quantity<mass_over_amount>,3.0155007134e-3*kilograms/mole,2.5e-12… 56 BOOST_UNITS_PHYSICAL_CONSTANT(mu_t,quantity<energy_over_magnetic_flux_density>,1.504609361e-26*joul… 58 BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_B,quantity<dimensionless>,1.622393657e-3*dimensionless()… 60 BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_N,quantity<dimensionless>,2.978962448*dimensionless(),3.… 62 BOOST_UNITS_PHYSICAL_CONSTANT(g_t,quantity<dimensionless>,5.957924896*dimensionless(),7.6e-8*dimens… 64 BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_e,quantity<dimensionless>,-1.620514423e-3*dimensionless(… 66 BOOST_UNITS_PHYSICAL_CONSTANT(mu_t_over_mu_p,quantity<dimensionless>,1.066639908*dimensionless(),1.… [all …]
|
/third_party/boost/libs/hana/example/misc/ |
D | dimensional_analysis.cpp | 36 struct quantity { struct 39 explicit quantity(double v) : value_(v) { } in quantity() function 42 explicit quantity(quantity<OtherDimensions> other) in quantity() argument 53 auto operator*(quantity<D1> a, quantity<D2> b) { in operator *() argument 55 return quantity<D>{static_cast<double>(a) * static_cast<double>(b)}; in operator *() 59 auto operator/(quantity<D1> a, quantity<D2> b) { in operator /() 61 return quantity<D>{static_cast<double>(a) / static_cast<double>(b)}; in operator /() 65 quantity<mass> m{10.3}; in main() 66 quantity<length> d{3.6}; in main() 67 quantity<time_> t{2.4}; in main() [all …]
|
/third_party/boost/libs/ratio/example/ |
D | si_physics.cpp | 74 class quantity class 80 quantity() : q_(1) {} in quantity() function in User1::quantity 87 class quantity<boost::ratio<1>, boost::ratio<0> > class 91 quantity() : q_(1) {} in quantity() function in User1::quantity 92 quantity(seconds d) : q_(d.count()) {} // note: only User1::seconds needed here in quantity() function in User1::quantity 99 class quantity<boost::ratio<0>, boost::ratio<1> > class 103 quantity() : q_(1) {} in quantity() function in User1::quantity 104 quantity(meter d) : q_(d.count()) {} // note: only User1::meter needed here in quantity() function in User1::quantity 111 class quantity<boost::ratio<0>, boost::ratio<0> > class 115 quantity() : q_(1) {} in quantity() function in User1::quantity [all …]
|
/third_party/boost/libs/units/tutorial/ |
D | tutorial_1.cpp | 91 struct conversion_helper< quantity<s1::length,X>,quantity<s2::length,Y> > 93 static quantity<s2::length,Y> convert(const quantity<s1::length,X>& source) in convert() 95 return quantity<s2::length,Y>::from_value(2.5*source.value()); in convert() 100 struct conversion_helper< quantity<s2::length,X>,quantity<s1::length,Y> > 102 static quantity<s1::length,Y> convert(const quantity<s2::length,X>& source) in convert() 104 return quantity<s1::length,Y>::from_value((1.0/2.5)*source.value()); in convert() 109 struct conversion_helper< quantity<s1::time,X>,quantity<s2::time,Y> > 111 static quantity<s2::time,Y> convert(const quantity<s1::time,X>& source) in convert() 113 return quantity<s2::time,Y>::from_value(0.5*source.value()); in convert() 125 quantity<s1::length,float> l1(1.0*s1::length1); in main() [all …]
|
/third_party/boost/libs/units/test/ |
D | test_quantity.cpp | 35 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E1; in test_main() 39 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E2(E_*bu::joules); in test_main() 43 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E3(E2); in test_main() 47 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E4 = E2; in test_main() 51 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy,float> E5(E2); in test_main() 62 bu::quantity<bu::energy> E9(E2); in test_main() 94 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E(bu::quantity<bu::energy>::from_value(2.5)… in test_main() 100 BOOST_CHECK(bu::joules*2.0 == bu::quantity<bu::energy>::from_value(2.0)); in test_main() 103 BOOST_CHECK(bu::joules/2.0 == bu::quantity<bu::energy>::from_value(0.5)); in test_main() 106 BOOST_CHECK(2.0*bu::joules == bu::quantity<bu::energy>::from_value(2.0)); in test_main() [all …]
|
D | test_information_units.cpp | 31 using bu::quantity; 108 BOOST_CONSTEXPR_OR_CONST quantity<info, double> qd(2 * byte); in BOOST_AUTO_TEST_CASE() 110 BOOST_CONSTEXPR_OR_CONST quantity<info, long> ql(2 * byte); in BOOST_AUTO_TEST_CASE() 116 BOOST_CONSTEXPR_OR_CONST quantity<hu::byte::info, double> qd(2 * byte); in BOOST_AUTO_TEST_CASE() 118 BOOST_CONSTEXPR_OR_CONST quantity<hu::byte::info, long> ql(2 * byte); in BOOST_AUTO_TEST_CASE() 124 BOOST_CONSTEXPR_OR_CONST quantity<hu::bit::info, double> qd(2 * bit); in BOOST_AUTO_TEST_CASE() 126 BOOST_CONSTEXPR_OR_CONST quantity<hu::bit::info, long> ql(2 * bit); in BOOST_AUTO_TEST_CASE() 132 BOOST_CONSTEXPR_OR_CONST quantity<hu::nat::info, double> qd(2 * nat); in BOOST_AUTO_TEST_CASE() 134 BOOST_CONSTEXPR_OR_CONST quantity<hu::nat::info, long> ql(2 * nat); in BOOST_AUTO_TEST_CASE() 140 BOOST_CONSTEXPR_OR_CONST quantity<hu::hartley::info, double> qd(2 * hartley); in BOOST_AUTO_TEST_CASE() [all …]
|
D | test_dimensionless_quantity.cpp | 35 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E1; in test_main() 39 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E2(E_); in test_main() 43 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E3(E2); in test_main() 47 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E4 = E2; in test_main() 51 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless,float> E5(E2); in test_main() 54 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless,long> E6(E2); in test_main() 67 bu::quantity<bu::dimensionless> E9(E2); in test_main() 107 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::dimensionless> E(bu::quantity<bu::dimensionles… in test_main() 118 BOOST_CHECK(bu::dimensionless()*2.0 == bu::quantity<bu::dimensionless>::from_value(2.0)); in test_main() 121 BOOST_CHECK(bu::dimensionless()/2.0 == bu::quantity<bu::dimensionless>::from_value(0.5)); in test_main() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | numparse_parsednumber.cpp | 29 quantity.bogus = true; in clear() 42 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 43 quantity.negate(); in postProcess() 52 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 72 U_ASSERT(!quantity.bogus); in getDouble() 73 if (quantity.isZero() && quantity.isNegative()) { in getDouble() 77 if (quantity.fitsInLong()) { in getDouble() 78 return static_cast<double>(quantity.toLong()); in getDouble() 80 return quantity.toDouble(); in getDouble() 105 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | numparse_parsednumber.cpp | 30 quantity.bogus = true; in clear() 43 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 44 quantity.negate(); in postProcess() 53 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 73 if (quantity.bogus) { in getDouble() 77 if (quantity.isZeroish() && quantity.isNegative()) { in getDouble() 81 if (quantity.fitsInLong()) { in getDouble() 82 return static_cast<double>(quantity.toLong()); in getDouble() 84 return quantity.toDouble(); in getDouble() 109 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | numparse_parsednumber.cpp | 30 quantity.bogus = true; in clear() 43 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 44 quantity.negate(); in postProcess() 53 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 73 if (quantity.bogus) { in getDouble() 77 if (quantity.isZeroish() && quantity.isNegative()) { in getDouble() 81 if (quantity.fitsInLong()) { in getDouble() 82 return static_cast<double>(quantity.toLong()); in getDouble() 84 return quantity.toDouble(); in getDouble() 109 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | numparse_parsednumber.cpp | 30 quantity.bogus = true; in clear() 43 if (!quantity.bogus && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 44 quantity.negate(); in postProcess() 53 return !quantity.bogus || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 73 if (quantity.bogus) { in getDouble() 77 if (quantity.isZeroish() && quantity.isNegative()) { in getDouble() 81 if (quantity.fitsInLong()) { in getDouble() 82 return static_cast<double>(quantity.toLong()); in getDouble() 84 return quantity.toDouble(); in getDouble() 109 U_ASSERT(!quantity.bogus); in populateFormattable() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ |
D | ComplexUnitsConverter.java | 141 public boolean greaterThanOrEqual(BigDecimal quantity, BigDecimal limit) { in greaterThanOrEqual() argument 145 …return unitsConverters_.get(0).convert(quantity).multiply(EPSILON_MULTIPLIER).compareTo(limit) >= … in greaterThanOrEqual() 166 public ComplexConverterResult convert(BigDecimal quantity, Precision rounder) { in convert() argument 168 if (quantity.compareTo(BigDecimal.ZERO) < 0) { in convert() 169 quantity = quantity.abs(); in convert() 181 quantity = (unitsConverters_.get(i)).convert(quantity); in convert() 190 …BigInteger flooredQuantity = quantity.multiply(EPSILON_MULTIPLIER).setScale(0, RoundingMode.FLOOR)… in convert() 195 … BigDecimal remainder = quantity.subtract(BigDecimal.valueOf(flooredQuantity.longValue())); in convert() 197 quantity = BigDecimal.ZERO; in convert() 199 quantity = remainder; in convert() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
D | ParsedNumber.java | 22 public DecimalQuantity_DualStorageBCD quantity; field in ParsedNumber 78 quantity = null; in clear() 87 quantity = other.quantity == null ? null in copyFrom() 88 : (DecimalQuantity_DualStorageBCD) other.quantity.createCopy(); in copyFrom() 118 if (quantity != null && 0 != (flags & FLAG_NEGATIVE)) { in postProcess() 119 quantity.negate(); in postProcess() 132 return quantity != null || 0 != (flags & FLAG_NAN) || 0 != (flags & FLAG_INFINITY); in seenNumber() 157 assert quantity != null; in getNumber() 158 if (quantity.isZeroish() && quantity.isNegative() && !integerOnly) { in getNumber() 162 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber() [all …]
|