Does casting double to float always produce same result, or can there be some \"rounding differences\"?
For example, is x in>
Considering that they have different precision, even i you're casting from less precision to wider one (I suppose that is actually your doubt) the result can not be always the same.
Floating point operations, especially casting, are always a subject of truncating/rounding and any other type of approximation.