Check out example codes for "c# display float with 2 decimal places". It will help you in understanding the concepts better.
Code Example 1
myFloatVariable.ToString("0.00"); //2dp Number
myFloatVariable.ToString("n2"); // 2dp Number
myFloatVariable.ToString("c2"); // 2dp currency
Learn ReactJs, React Native from akashmittal.com