Searched defs:fraction (Results 1 - 25 of 36) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
H A DProperBigFractionFormat.java17 package org.apache.commons.math.fraction;
82 * @param fraction the object to format.
89 public StringBuffer format(final BigFraction fraction, argument
95 BigInteger num = fraction.getNumerator();
96 BigInteger den = fraction.getDenominator();
H A DProperFractionFormat.java17 package org.apache.commons.math.fraction;
80 * Formats a {@link Fraction} object to produce a string. The fraction
83 * @param fraction the object to format.
90 public StringBuffer format(Fraction fraction, StringBuffer toAppendTo, argument
96 int num = fraction.getNumerator();
97 int den = fraction.getDenominator();
124 * expects the string to be formatted as a proper fraction.
136 // try to parse improper fraction
182 // return num as a fraction
H A DFractionFormat.java18 package org.apache.commons.math.fraction;
84 * @return A formatted fraction in proper form.
127 * customizing is the maximum number of fraction digits, which is set to 0.
135 * Formats a {@link Fraction} object to produce a string. The fraction is
138 * @param fraction the object to format.
144 public StringBuffer format(final Fraction fraction, argument
150 getNumeratorFormat().format(fraction.getNumerator(), toAppendTo, pos);
152 getDenominatorFormat().format(fraction.getDenominator(), toAppendTo,
216 * expects the string to be formatted as an improper fraction.
244 // return num as a fraction
[all...]
H A DBigFractionField.java18 package org.apache.commons.math.fraction;
H A DFractionConversionException.java18 package org.apache.commons.math.fraction;
24 * Error thrown when a double value cannot be converted to a fraction
H A DFractionField.java18 package org.apache.commons.math.fraction;
H A DAbstractFormat.java18 package org.apache.commons.math.fraction;
178 * Formats a double value as a fraction and appends the result to a StringBuffer.
195 * Formats a long value as a fraction and appends the result to a StringBuffer.
H A DBigFractionFormat.java18 package org.apache.commons.math.fraction;
H A DFraction.java17 package org.apache.commons.math.fraction;
41 /** A fraction representing "2 / 1". */
44 /** A fraction representing "1". */
47 /** A fraction representing "0". */
50 /** A fraction representing "4/5". */
53 /** A fraction representing "1/5". */
56 /** A fraction representing "1/2". */
59 /** A fraction representing "1/4". */
62 /** A fraction representing "1/3". */
65 /** A fraction representin
430 add(Fraction fraction) argument
453 subtract(Fraction fraction) argument
476 addSub(Fraction fraction, boolean isAdd) argument
533 multiply(Fraction fraction) argument
568 divide(Fraction fraction) argument
[all...]
H A DBigFraction.java17 package org.apache.commons.math.fraction;
40 /** A fraction representing "2 / 1". */
43 /** A fraction representing "1". */
46 /** A fraction representing "0". */
49 /** A fraction representing "-1 / 1". */
52 /** A fraction representing "4/5". */
55 /** A fraction representing "1/5". */
58 /** A fraction representing "1/2". */
61 /** A fraction representing "1/4". */
64 /** A fraction representin
505 add(final BigFraction fraction) argument
662 divide(final BigFraction fraction) argument
893 multiply(final BigFraction fraction) argument
1081 subtract(final BigFraction fraction) argument
[all...]
/external/linux-tools-perf/src/tools/perf/ui/gtk/
H A Dprogress.c12 double fraction = total ? 1.0 * curr / total : 0.0; local
34 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), fraction); local
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DPixelUtils.java120 * @param fraction A float value between 0 and 1.
121 * @return Number of pixels fraction represents on the current device's display.
123 public static float fractionToPixH(float fraction) { argument
124 return metrics.heightPixels * fraction;
130 * @param fraction A float value between 0 and 1.
131 * @return Number of pixels fraction represents on the current device's display.
133 public static float fractionToPixW(float fraction) { argument
134 return metrics.widthPixels * fraction;
/external/tcpdump/
H A Dntp.h32 u_int32_t fraction; member in struct:l_fixedpt
37 u_int16_t fraction; member in struct:s_fixedpt
/external/deqp/framework/common/
H A DtcuFloatFormat.cpp241 const deUint64 fraction = bits & ((deUint64(1) << m_fractionBits) - 1); local
244 const deUint64 aligned = fraction << (numDigits * 4 - m_fractionBits);
/external/skia/src/animator/
H A DSkDrawColor.cpp71 //SkScalar fraction = SkScalarMod(hue, 60 * SK_Scalar1);
73 SkScalar fraction = hue / 60 - SkIntToScalar(sextant); local
75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction));
77 SkScalarMul(saturation, SK_Scalar1 - fraction));
/external/skia/src/utils/
H A DSkInterpolator.cpp81 SkScalar fraction = SkScalarFraction(fRepeat); local
82 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime :
83 (SkMSec) SkScalarFloorToInt(fraction * totalTime);
/external/sonivox/arm-fm-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/sonivox/arm-hybrid-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/sonivox/arm-wt-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
H A Dpitch_filter.c216 double fraction; local
222 fraction = parameters->lag_offset - (parameters->lag + PITCH_FILTDELAY);
223 fraction_index = WebRtcIsac_lrint(PITCH_FRACS * fraction - 0.5);
/external/v8/test/cctest/
H A Dtest-macro-assembler-x64.cc1270 bool fraction = !division_by_zero && !overflow && (x % y != 0); local
1273 if (!fraction && !overflow && !negative_zero && !division_by_zero) {
1379 bool fraction = !division_by_zero && !division_overflow && ((x % y) != 0); local
1380 bool negative_zero = (!fraction && x < 0);
/external/libpng/contrib/libtests/
H A Dtarith.c271 * [+,-]{integer,integer.fraction,.fraction}[{e,E}[+,-]integer]
277 start, fraction, exponent, states enumerator in enum:checkfp_state
293 /* fraction: */ { none, "eE", "+-.E#0147" },
435 else if (((ch == '+' || ch == '-') && c.check_state != fraction &&
447 /* The number remains valid after start of fraction but nowhere else. */
457 /* Check for a state change. When changing to 'fraction' if the number
463 c.check_state = fraction;
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_bstring.cpp1115 int fraction = scaled % scale; local
1116 if (fraction == 0) {
1121 while (fraction) {
1122 buf[buf_size++] = '0' + fraction / scale;
1123 fraction %= scale;
H A Dfx_basic_wstring.cpp995 FX_FLOAT fraction = 0; local
1000 fraction += scale * (str[cc] - '0');
1005 fraction += (FX_FLOAT)integer;
1006 return bNegative ? -fraction : fraction;
/external/toybox/lib/
H A Dxwrap.c627 long xparsetime(char *arg, long units, long *fraction) argument
646 if (fraction) *fraction = units*(d-l);
647 } else if (fraction) *fraction = 0;

Completed in 277 milliseconds

12