MJ
asked on
Concat a string at certain character
If I have a string for example "000000.0000" or
"abc.def"
How would I pull any thing off two spots past the decimal
So the rersults would return
"000000.00" or
"abc.de"
"abc.def"
How would I pull any thing off two spots past the decimal
So the rersults would return
"000000.00" or
"abc.de"
s = s.substring(0, s.indexOf(".")+3);
ASKER
Is it possible to do something like this?
Take the below:
<%=getStatBookValue(keynam e)%>
and do something like this:
<%=getStatBookValue(keynam e).substri ng(0, s.indexOf(".")+3)%>
Take the below:
<%=getStatBookValue(keynam
and do something like this:
<%=getStatBookValue(keynam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.