How to Convert a String into Float without using any built-
in library of .NET
String = "1235.45" needs to converted to a float

Answers were Sorted based on User's Feedback



How to Convert a String into Float without using any built- in library of .NET String = "123..

Answer / j.d.babu

We can Directly Assign String To the Double Object


Dim Str As String = "1235.45"
Dim Ifloat As Double = Str

Is This Answer Correct ?    6 Yes 7 No

How to Convert a String into Float without using any built- in library of .NET String = "123..

Answer / lince

string str = "555.67";
double a;
a=Convert.ToDouble (str);

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

What is http session state?

0 Answers  


What is server side routing?

0 Answers  


how to pass session value one url to another url.my code if session("user")="abc" then response.redirect("www.abc.com\client\home.aspx") end if. so how to pass value of session in browser url

1 Answers  


What does the "EnableViewState" property do? Why would I want it on or off?

4 Answers  


What are user controls?

0 Answers  


Why is this service branded with windows livetm?

0 Answers  


Whats the difference between abstract factory pattern and factory pattern?

0 Answers  


What is the caspol.exe tool used for?

0 Answers  


What is the difference between runtime version and version?

0 Answers  


What is a postback in asp net?

0 Answers  


detail code for sql data connections?

2 Answers  


What r all the controls in ASP.NET ?

3 Answers  


Categories