How to write a logic to dynamically display 1 decimal place or whole number?
I'm currently making a report using Eclipse BIRT(which uses Javascript for writing conditions) but there is one requirement: Display 1 decimal place for the total amount, but if the first decimal is 0, output whole number instead.
Does someone know how to do it with Javascript?
Javascript - Conditionally Displaying Decimal?
- Posted:
- 3+ months ago by Maishin
- Topics:
- eclipse, logic, javascript
Details:
Answers
No answers have yet been posted. Add your answer to this question.