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 caching? What are the different types of caching?

6 Answers  


What Are Different Types of Debbugers

2 Answers   Accenture, TCS, Wipro,


In cache where dats is stored and how(file or object?)

2 Answers  


What method do you use to explicitly kill a users session?

2 Answers   Siebel Systems,


Suppose, I have 3 pages, Page1.aspx, Page2.aspx, Page3.aspx. All pages are in diff. server. When user req. for a page, Page1.aspx opens Ist & a session established. If user req. for IIn page, second session established. Similarly, 3rd session established if user req. 3rd page. In this scenario, tot. 03 sessions are established. How we can minimize it so that it will work with only one session?

3 Answers   TCS, Wipro,






What are Http handler ?

6 Answers   Accenture, BirlaSoft, Satyam, Syntel,


Can I tap into other windows livetm services?

0 Answers  


What are the advantages of passport authentication?

0 Answers  


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  


How do you validate the controls in an ASP .NET page?

3 Answers  


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

0 Answers  


What is .net framework and what are the main components of it?

0 Answers  


Categories