Say I have a variable x. It currently holds the value 4 (x = 4). How would I change the value of x to a floating point number (such as 4.4, or 4.0)? The only thing I can think of is a reassignment, but I feel like this just isn't the right way to do it.
x = x + 0.0
Is there any way to do this with something like a standard library function or without reassignment?