L
Luigi
Hi all,
I have to write a snippet that performs a rounding of decimal value, follow
this rules:
1.49m -> 1m
1.5 -> 2m
1.51 -> 2m
-1.49 -> -1m
-1.50 -> -2
I was trying this:
Math.Ceiling((-voceValue.Value ?? 0m) - 0.5M);
but not works correctly.
Has anyone idea?
Thanks a lot.
I have to write a snippet that performs a rounding of decimal value, follow
this rules:
1.49m -> 1m
1.5 -> 2m
1.51 -> 2m
-1.49 -> -1m
-1.50 -> -2
I was trying this:
Math.Ceiling((-voceValue.Value ?? 0m) - 0.5M);
but not works correctly.
Has anyone idea?
Thanks a lot.