Saturday, 20 July 2019

C# - Fix Error - Literal of type double cannot be implicitly converted to type 'decimal'; use an 'M' suffix to create a literal of this type

Watch this example on YouTube


To Fix it replace
  Decimal Rate = 1.0000;
with
 Decimal Rate = 1.0000M;

No comments:

Post a Comment