I have a value which is like this in C#:
14.995
I have tried storing the value inside these variables:
double Number;
float Number;
Both values seem to round up this number to 15 .. However, instead of 15... I'd like the number to be rounded to the exactly 14.99 :/
Number= Math.Round(amount * (1 - calcPerc),2,MidpointRounding.AwayFromZero);\
The output is always 15... Is there some way to round this to 14.99 instead of 15 ?
Can someone help me out?