Hello,

I have a very simple question.

I want to know that if there is a format class, method or any wy to format a decimal number into a implied decimal format?

Some examples, for implied decimal to 2 places:

input: 12345.06

output: 1234506

input: 12345.00

output: 1234500

input: -152345.45

output: -15234545

input: -152345.457892

output: -15234546

input: 12.16223

output: 1216

I can handle the rounding, alignment, the negative sign and fixed length for the number but not this implied decimal thingy. I have looked at DecimalFormat but I couldn't find anything that does this. Also, nothing in String.format. Currently I am using a sort of a workaround that I first convert the decimal number into a

String of my desired format (precision, size, padding etc.) and then through String manipulation create an implied decimal string. Am I missing something basic here?

Thanks.