Search:

Type: Posts; User: Norm

Search: Search took 0.16 seconds.

  1. Replies
    7
    Views
    4,991

    Re: How to convert from type double to type int?

    What line is the error on?

    Is length2 a local variable in a method?
    or is it a class variable know to all methods?

    Local variables are only known in the method (or enclosing {}s) they are...
  2. Replies
    7
    Views
    4,991

    Re: How to convert from type double to type int?

    You can cast it: int i = (int)1.3;
Results 1 to 2 of 2