I have tried many Math function in the c# to convert 1.7272 to 1.73 but did not got any function working to achieve my goal. I wants a simple conversion which is 1.7272 to 1.73
Please suggest me which Math function can do work for me?
Thanks
I have tried many Math function in the c# to convert 1.7272 to 1.73 but did not got any function working to achieve my goal. I wants a simple conversion which is 1.7272 to 1.73
Please suggest me which Math function can do work for me?
Thanks
If you'd like a string
> (1.7272).ToString("#.##")
"1.73"
Or a decimal
> Math.Round(((Decimal)1.7272), 2)
1.73m