I have a question regarding c# and rounding. Given the following equations c# seems to round them differently based on if a decimal is dictated in the whole number. Is there any way to tell C# to output 7.5 regardless of the format of the code?
I am in the process of converting some legacy code and I don’t have the option of ensuring the static values are formatted with “.00”.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.