Click here to Skip to main content
15,890,882 members

Response to: converting float type to string

Latest Revision
Convert float to string e.g. prev.ToString() but I suspect you also want it the other way around...
C#
float.TryParse(prevtxt.Text, out prev);


Or
C#
prev.ToString("0.00"); 
if you want to format it ... try looking up the help on ToString() or look at the intellisense prompts
Posted 27-Jan-13 11:19am by CHill60.
Tags: ,