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 intrinsic objects in asp.net?

0 Answers  


What event fired during, when datagrid click?

1 Answers  


What is viewstate information stored?

0 Answers  


Features in ASP.NET ?

1 Answers   Microsoft,


what is roles in asp.net

2 Answers  






Explain serialization and deserialization?

0 Answers  


What is the difference between application state and session state in asp net?

0 Answers  


Can we use multiple forms in single asp.net application?

3 Answers   Polaris,


Explain the differences between Server-side and Client-side code?

3 Answers  


Is it possible to create web application with both webforms and mvc?

0 Answers  


What is WCF? Pls Explain clearly with exmple.

3 Answers   HCL, iGate,


What is session handling in a webfarm, how it can work with its limits?

0 Answers   Siebel,


Categories