Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
I need to convert a comma seperated string, say 34,987 into a number 34987. How do I remove the comma in an apex class?
try this..
.replaceAll(" ,$", "")
Thanks Amitkumar
Try this....
string strSample = '37,8945';Integer Replaced = Integer.Valueof(strSample.replace(',', ''));
try this..
.replaceAll(" ,$", "")
All Answers
try this..
.replaceAll(" ,$", "")
Thanks Amitkumar
Try this....
string strSample = '37,8945';
Integer Replaced = Integer.Valueof(strSample.replace(',', ''));