SyntaxFix
Write A Post
Hire A Developer
Questions
What's wrong with casting primitives?
If you don't want to cast for some reason, you could do
double d = num * 1.0 / denom;