Results 1 to 5 of 5

Thread: [RESOLVED] [2.0] Float

Threaded View

  1. #1

    Thread Starter
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Resolved [RESOLVED] [2.0] Float

    Hi all
    Look that sub in the class

    C# Code:
    1. class cone
    2. {
    3.     float ht, rd;
    4.     public void set(float h, float r)
    5.     {
    6.         ht = h;
    7.         rd = r;
    8.     }
    9. }

    C# Code:
    1. cone c1;
    2. c1=new cone();
    3. c1.set(12.34,23.0);


    ERROR HERE c1.set(12.34,23.0);
    CAN NOT CONVERT DOUBLE TO FLOAT. WHY??
    Last edited by shakti5385; Apr 13th, 2007 at 03:32 AM. Reason: change vb code to c#

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width