Is there a way to execute a piece of code depending on how many decimal places there are in a number. For instance, if the double was just 2.0 i would want to convert it to an integer, but if it were 2.43426 i would want to leave it as a double. Thanks!
Share
Not sure, but would:
Work for you? That only answers your question in that particular case.