0
Do conversion of one data type to othere follows any order in python?
like integer is converted to float rather than float to integer.
5 Antworten
+ 1
Thanks
0
As far as i remeber in C++ you cant implicit cast int to float but opposite is true.
- 1
Nope. You can convert an integer to a float. Same with a lot of other data types
There are limits though (string to float/int will raise an error), though you can convert an int to string