chumansky Posted December 17, 2009 Share Posted December 17, 2009 Hello!Is it a way to present NUMERIC or BIGDECIMAL 0 in some custom way? For example "-", or even with blank value.I do know that I can use "Blank When null" option but maybe it is possible not to transform NUMERIC or BIGDECIMAL 0 into nulls?If there is no way to do it, tell me please how can I convert Numeric report variable into null when it have initial value NUMERIC 0 and was not changed?Thanks in advance! Post Edited by chumansky at 12/17/2009 05:28 Link to comment Share on other sites More sharing options...
davidc1986 Posted December 17, 2009 Share Posted December 17, 2009 You could use a ternary expressione.g. value.compareTo(new BigDecimal("0")) == 0 ? "-" : value David 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