2021年3月13日星期六

Why is Visual studio returning only integers?

I just upgraded my computer and had to reinstall Visual Studio 2019, and I realized for some reason I can't work with float values. For example if I do a cout << (3/2); , it will return 1. I've tried looking into the float.h file but I don't know what to change. I guess it's a simple fix, I tried to google it but I didn't find a solution yet

https://stackoverflow.com/questions/66620107/why-is-visual-studio-returning-only-integers March 14, 2021 at 09:06AM

没有评论:

发表评论