Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How can i multiply a decimal? with a double?
shosho s
Apr 10 2016 4:11 AM
375
Reply
the properties :
public decimal? Percentage { get; set; }
public double Amount { get; set;
foreach (var item in updatethis)
{
item.Amount = (CPP.Percentage * CPP.Amount);
}
Im getting this error
Operator '*' cannot be applied to operands of type 'decimal?' and 'double'
how can i solve this ? thank you in advance :)
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Selection Problem
When to use In Memory Caching and Distributed Caching in C#?