L
Luigi
Hi all,
I need to round a decimal value with a particular rule.
For example:
decimal a = 1.49m -> 1m
decimal a = 1.5m -> 1m
decimal a = 1.51m -> 2m
I've tried Math.Round but with the value 1.5 it returns me 2, which it is
not correct for my business rule.
How can I solve this problem?
Thanks in advance.
I need to round a decimal value with a particular rule.
For example:
decimal a = 1.49m -> 1m
decimal a = 1.5m -> 1m
decimal a = 1.51m -> 2m
I've tried Math.Round but with the value 1.5 it returns me 2, which it is
not correct for my business rule.
How can I solve this problem?
Thanks in advance.