最佳答案
How does one convert from an int or a decimal to a float in C#?
I need to use a float for a third-party control, but I don't use them in my code, and I'm not sure how to end up with a float.