The format of the input is supposed to be maximal 5 digits, and one decimal. If the user types e.g. 4, I want the converter to convert this to a Double 4.0. But it takes it as a Long, so I get a classCastException.
Is it possible at all to use this converter for my purpose: convert to a one decimal number. The pattern is maybe wrong?
Joined: Aug 27, 2002
i never tried pattern but i think this will server your purpose