C#C
C#17mo ago
17 replies
Graxonus

decimal celciusDiv not working and being used as 0 when casted as int

Trying to convert from farenheit to celcius and it just isn't working and I'm not sure why exactly. i can't multiply by a decimal variable it seems so have to cast as int. It then seems to result in celciusDiv becoming 0 instead of 5.0m/9.0m. It's a logic error as well so it won't even tell me why it isn't working.
Screenshot_2024-08-28_161301.png
Was this page helpful?