Joined: 03 Oct 2008 Posts: 43 Location: Chennai,India.
Thanks a lot. The above solution perfectly matches for my requirement. But i like to know why it has to be multiplied by 10000 instead of 100 . Could you please explain?
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
You're welcome.
Quote:
Signed free format. Decimal digits (0-9) are extracted from right to left
to form a number value. A character of – or ) found within the field will
cause the value to be treated as a negative number. All other nondecimal
digit values in the field are ignored. A maximum of 31 digits
can be provided. When more than 31 digits are found in the field, the
leftmost digits will be ignored.
Here you dont get the decimal values in the output as it does n't take the decimal points in input into account. You'll get the same output no matter the decimal point is there or not. Hence even if you try to format it with an STTT.TT, you'll only be able to reformat the output you got in first step. So if you need more decimal values, you'll have to suffix with more zeroes. Did I confuse you?