void main () {
	test_double_try_parse_binding ("3.45");
	test_double_try_parse_binding ("3.45mm");
	test_double_try_parse_with_original_signature ("3.45");
	test_double_try_parse_with_original_signature ("3.45mm");
}

void test_double_try_parse_binding( string string_to_parse ) {
	double result;
	string? remainder = null;
	if (double.try_parse (string_to_parse, out result, out remainder)) {
		print (@"\"$string_to_parse\" completely parsed\n");
	} 
	else {
		print (@"\"$string_to_parse\" not fully parsed\n");
	}
	print (@"Remainder is \"$remainder\"\n");
}

void test_double_try_parse_with_original_signature( string string_to_parse ) {
	double result;
	if (double.try_parse (string_to_parse, out result)) {
		print (@"\"$string_to_parse\" completely parsed\n");
	} 
	else {
		print (@"\"$string_to_parse\" not fully parsed\n");
	}
}
