Check out example codes for "convert string to decimal c#". It will help you in understanding the concepts better.

Code Example 1

DepositAmount = Convert.ToDecimal(u.DepositAmount)

Code Example 2

var convertDecimal = Convert.ToDecimal(value);

Learn ReactJs, React Native from akashmittal.com