I am having input in number format or normal string , I have to write a code in JS where if input is number it changes its format, for instance 315.0(input) it should convert to 315(output) , otherwise if input is 315A(input) it should return same output (315A).
Here's a piece of my code but it doesn't work
if (input != 000.0) {
output = input;
} else {
output = 000;
}
Thanks
Ali


