how to resolve this error? (The argument type 'double' can’t be Assigned to the Parameter type 'int')

Asked

Viewed 24 times

0

 if (result & 1 == 1) {
    result = ~result;
  }
  var result1 = (result >> 1) * 0.00001;
  lList.add(result1);
} while (index < len);

the project is in . Dart in flutter

error: "The argument type 'double' can’t be Assigned to the Parameter type 'int'

  • Why are you doing binary operation and multiplying by 0.00001? What is the purpose of the code?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.