I want to write a function to trim additional decimal 0\'s from floating point numbers like 2.0, 5.00 but not 3.04.
so I wrote this:
const trimZeroFromDec