|
|
|
|
|
by hn92726819
1317 days ago
|
|
What do you mean? It already errors out if you try adding them together because it requires explicit casts. What the comment you're replying to is saying is that it's better to just explicitly cast than figure out what the compiler guesses. let x=19/10+0.5
I want to decide for myself if my result is 2.4, 1.5, 1, or 2 in the example above |
|