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 the base class of .NET?

6 Answers  


Can we have multiple web config files for an asp.net application?

0 Answers  


Out of ASP or ASP.NET which one is stateless?

0 Answers   BirlaSoft,


What is the use of Administration tool in Asp.net 2.0?

2 Answers  


What are the types of assemblies and where can u store them and how ?

1 Answers   Patni,


What are the various types of authentication?

1 Answers  


what is view state and its use

10 Answers   DELL, Efextra, HCL,


Can we create a multiple user simultaneously ?

0 Answers   MCN Solutions,


How can I open ashx file in mobile?

0 Answers  


You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel

2 Answers   Syntax Softtech,


# What is the transport protocol you use to call a Web service?

1 Answers  


What are client activated objects?

0 Answers  


Categories