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?