public long valueFor(double elapsed) {double val;if (modBy == 0)val = elapsed / factor;elseval = elapsed / factor % modBy;if (type == '0')return Math.round(val);else return (long) val;}

public long valueFor ( double elapsed ) { double val ; if ( modBy == 0 ) val = elapsed / factor ; elseval = elapsed / factor % modBy ; if ( type == '0' ) return Math . round ( val ) ; else return ( long ) val ; }
public long ValueFor(double elapsed){double val;if (modBy == 0)val = elapsed / factor;elseval = elapsed / factor % modBy;if (type == '0')return (long)Math.Round(val);else return (long)val;}
