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

Write a code for passing ArrayList in Web API?

0 Answers  


What is sql data source control in asp.net?

0 Answers  


Why cyclomatic complexity is important?

0 Answers  


How many types of page.

5 Answers   TCS, Verinon Technology Solutions,


what are the advantage in asp.net and what are the question ask for interview in vb.net and asp.net

0 Answers   TCS,






How can you make sure that web api returns json data only?

0 Answers  


Explain about solution explorer window?

0 Answers  


Which adapter should you use, if you want to get the data from an access database?

0 Answers  


What is the difference between GridView and Repeater controls in ASP.NET?

0 Answers  


What are directives in asp.net? List down all the important directives.

0 Answers  


how to send mail in asp.net

2 Answers  


What are the new features implemented in ASP.NET?

0 Answers   TCS,


Categories