pumaking Posted August 30, 2012 Share Posted August 30, 2012 Hi, I want to format a number based on it's decimal digits ( I hope the translation is correct)example:12,0 = new java.text.DecimalFormat("#,##0").format($V{Whatever})12,7= new java.text.DecimalFormat("#,##0.0").format($V{Whatever})I hope you understand my question. Is this possible? Link to comment Share on other sites More sharing options...
mark.torres Posted April 4, 2014 Share Posted April 4, 2014 This one worked for me..($V{member_id_MEASURE1} != 0 ? (new DecimalFormat(".00").format(($V{member_id_MEASURE1}/$V{member_id_MEASURE1_deny_reasons1_ALL}) * 100)) : 0 ) + "%"I added the new DecimalFormat(".00").format( calculations) the + "%" is to give it like a percent look. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now