setArrayFract method

EasyClip setArrayFract(
  1. String chr,
  2. dynamic subIndex,
  3. double num,
  4. double denom,
)

Implementation

EasyClip setArrayFract( String chr, dynamic subIndex, double num, double denom ){
	_setEnv();
	MathValue value = MathValue();
	bool isMinus = ((num < 0) && (denom >= 0)) || ((num >= 0) && (denom < 0));
	value.fractSetMinus( isMinus );
	value.setNum  ( ClipMath.abs( num   ) );
	value.setDenom( ClipMath.abs( denom ) );
	value.fractReduce();
	_param.fractReduce( ClipMath.char( chr ), false );
	setArrayValue( chr, subIndex, value );
	return this;
}