I need to test if a number has a decimal value in c++ using only iostream, but I'm curious if the method I'm using would be acceptable. If you can offer any assistance finding a better way that would be great. (code below)I need to test if a number has a decimal value