By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,705 Members | 2,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,705 IT Pros & Developers. It's quick & easy.

float Parse with F format

P: n/a
what parameters need to be sent to the Parse method to successfully
parse a string in the format of "1.1F"

Jul 3 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jw*****@gmail.com wrote:
what parameters need to be sent to the Parse method to successfully
parse a string in the format of "1.1F"
float.Parse() isn't suitable for parsing source code. You have to write
your own parser.
Jul 4 '07 #2

P: n/a
jw*****@gmail.com wrote:
what parameters need to be sent to the Parse method to successfully
parse a string in the format of "1.1F"
You could write code to remove the F first before using the plain old
parse method

--
http://bytes.thinkersroom.com
Jul 4 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.