You can convert your final dollar amount into a string, then parse the string to determine if/where the decimal point is and use that is a guide. For example


String s =...