L
Luigi
Hi all,
I have a collection (an array for example) of decimal values.
I need to round them and take care of the roundings.
For example, if I have
decimal a = 10.50m
should became 10
and if
decimal b = 10.51m
should became 11.
Then I need to populate a decimal variable with these rest with the sing
values.
So 0.50 it will have the "+" sign, and the 0.49 will have "-" sign.
In this example
decimal c = + 0.50 - 0.49 // It will be 0.01
How can I accomplish this?
Thanks in advance.
I have a collection (an array for example) of decimal values.
I need to round them and take care of the roundings.
For example, if I have
decimal a = 10.50m
should became 10
and if
decimal b = 10.51m
should became 11.
Then I need to populate a decimal variable with these rest with the sing
values.
So 0.50 it will have the "+" sign, and the 0.49 will have "-" sign.
In this example
decimal c = + 0.50 - 0.49 // It will be 0.01
How can I accomplish this?
Thanks in advance.