/////////////////////////////////////////////////////////////////
//Copyright (C) 2005 NTT CORPORATION.
//
//WBTʃO@ʊ֐
//
//		ύX
//			2005.01.31  VK쐬  OGA
//
//	@\
//
//WBTʂ̃Oʊ֐
//
/////////////////////////////////////////////////////////////////

/*
 * 쐬: 2005/02/19
 *
 * TODO ̐ꂽt@C̃ev[gύXɂ͎փWv:
 * EBhE - ݒ - Java - R[hEX^C - R[hEev[g
 */
package jp.co.ntt.lms.xmf.actions.lo.wbt.IndividualLog.inc;

/**
 * @author Administrator
 *
 * TODO ̐ꂽ^Rg̃ev[gύXɂ͎փWv:
 * EBhE - ݒ - Java - R[hEX^C - R[hEev[g
 */
public class IndividualLogComFunc_inc {

	
	/**
	 * 
	 */
	public IndividualLogComFunc_inc() {
		super();
		// TODO ꂽRXgN^[EX^u
	}
	/**
	 * _ȉʂŎľܓ܂B
	 * p[Zg\ɕϊ܂B
	 * @param 鐔
	 * @param 鐔
	 * @return 
	 */

	public float getMathRound2( float f1, float f2){
		float result = 0;
		// 0΍
		if ( f2 != 0 ){
			// ľܓ
			result = (float)((int)Math.round( (f1 / f2) * 1000.0 )/ 10.0);
		}

		return result;
	}

	/**
	 * _ȉʂŎľܓ܂B
	 * @param 鐔
	 * @param 鐔
	 * @return 
	 */

	public float getMathRound( float f1, float f2){
		float result = 0;
		// 0΍
		if ( f2 != 0 ){
			// ľܓ
			result = (float)((int)Math.round( (f1 / f2) * 10.0 )/ 10.0);
		}

		return result;
	}

}
