public static long[] parseCoins(long value) {
		long[] result = new long[3];
		if (value < 0) return result;

		long temp = value;
		result[2] = temp % 100;
		temp = temp / 100;
		result[1] = temp % 100;
		result[0] = temp / 100;
		return result;
	}
public static long [ ] parseCoins ( long value ) { long [ ] result = new long [ 3 ] ; if ( value < 0 ) return result ; long temp = value ; result [ 2 ] = temp % 100 ; temp = temp / 100 ; result [ 1 ] = temp % 100 ; result [ 0 ] = temp / 100 ; return result ; }
parse given coin value into number of gold, sliver, and copper

@param value coin value
@return results in array: index 0 is number of gold, index 1 is number of sliver, index 2 is number of copper