I'm currently working on a program and im converting my java code into c# . but i'm having some trouble.
public double round(double value){
BigDecimal b = new BigDecimal(value);
b = b.setScale(2,BigDecimal.ROUND_UP);
return (b.doubleValue());
}
i wrote this converting code but i cant convert it to c#.BigDecimal type causes some problem and im totally new to .Net.Definitely need some help.
Edit : Ok buds i got it , sorry for the dumb question.