You are not logged in.
Announcement
Unanswered posts
|
Hi Janhess thank you for sharing easy way of convert into decimal.
If your output field is decimal with 2 places why not just divide by 100?
Hey Umesh Thank you!! Now its working!!Thank you for your suggestion!!!
Hi Nikhil,
yes i agree that some time it is not working,i don`t know but you can wright routines to done this task. create a one routine and wright down below code. and let me know if it is working for you or not.
// pass your column name to this function.
public static String ChangeToDecimal(String message) {
{
if(message.length()>2)
{
temp=message.substring(0,message.length()-2) +"."+message.substring(message.length()-2);
}
else
{
temp="0.00";
}
}
return temp;
}
Hi new BigDecimal(Numeric.convertImpliedDecimalFormat("9V99","123456")); is not working in my case.Is there any other alternative available to do the same?
Hi
Glad that you find the answer.
Seasons Greeting!
Best regards!
Pedro
new BigDecimal(Numeric.convertImpliedDecimalFormat("9V99","123456"));
this works for me
Hi all
i am getting input in string format which is plane integer and want to convert it to decimal format. as the subject line eg. shows if my input string is "1234567" then want to out put it in 12345.67. please suggest.