forum

home / developersection / forums / how to parse the value to float?

How to parse the value to float?

Anonymous User 2435 09-May-2013
Hi!

How to parse a value to float? When I try to parse that generate error as following

My line of code as following

float rt = float.Parse("12.50%");

Error message

System.FormatException: Input string was not in a correct format.

Please resolve my problem. 

Thank in advance!

c# c# 
Updated on 09-May-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By