L
Luigi Z
Hi all,
I have a problem with this snippet:
decimal? totalValue = null;
foreach (decimal? value in valuesList)
{
if (!value.HasValue)
continue;
totalValue = totalValue ?? 0;
totalValue += value;
}
I need to Round with zero decimals the totalValue (of Decimal? type).
How can I solve?
Thank in advance.
I have a problem with this snippet:
decimal? totalValue = null;
foreach (decimal? value in valuesList)
{
if (!value.HasValue)
continue;
totalValue = totalValue ?? 0;
totalValue += value;
}
I need to Round with zero decimals the totalValue (of Decimal? type).
How can I solve?
Thank in advance.