View Single Post
  #2 (permalink)  
Old 04-06-2008, 09:01 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,775
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: C: how to check if the float is not a char

Use float.TryParse() to see if the value is a float. If it is, the function returns "true", if not, "false". You can then use an "if" statement to determine whether or not to actually go ahead with whatever you want to do with the float.
__________________


Mr. Xav | Website | Forums | Blog
Reply With Quote