You should use B4XFormatter to format the number as string.
About the opposite direction, assuming that it is not coming from a user input then you shouldn't do anything with the formatted string. Work with the original numbers instead. This way you will not suffer from rounding issues.
You can of course parse this string easily with:
Dim n As Int = s.Replace("$", "").Replace(".", "")