Feb 23, 2005 #1 bb11 Programmer Joined Feb 23, 2005 Messages 5 Location AU What does "float.Parse" do and what does float by it self do
Feb 23, 2005 #2 MadJock Programmer Joined May 25, 2001 Messages 318 Location GB bb11, float is a value type provided by the .Net. You can create an instance of this type with a value i.e. Code: float a = 76; .Parse is a static method of the float type that allows you to retrieve a value (as a float) from a different value type. for example: Code: float a = 76; string s = "76"; float b = float.parse(s); //Produces 'true' Console.WriteLine("a = b is {0}", a == b); Hope this helps, Graeme "Just beacuse you're paranoid, don't mean they're not after you Upvote 0 Downvote
bb11, float is a value type provided by the .Net. You can create an instance of this type with a value i.e. Code: float a = 76; .Parse is a static method of the float type that allows you to retrieve a value (as a float) from a different value type. for example: Code: float a = 76; string s = "76"; float b = float.parse(s); //Produces 'true' Console.WriteLine("a = b is {0}", a == b); Hope this helps, Graeme "Just beacuse you're paranoid, don't mean they're not after you