Lines Matching refs:POSITION
417 * {{ Assumes a POSITION is a long int. }}
419 public int percentage(POSITION num, POSITION den)
421 return (int) muldiv(num, (POSITION) 100, den);
425 * Return the specified percentage of a POSITION.
430 public POSITION percent_pos(POSITION pos, int percent, long fraction)
436 POSITION pctden = (percent * NUM_FRAC_DENOM) + fraction;
438 return (POSITION) muldiv(pos, pctden, 100 * (POSITION) NUM_FRAC_DENOM);