I have the following calculation in Java:

```
rightMotor = (int) (((double)speed)/((double)100)*rightMotor));

```

Speed and rightMotor are both integers.
The problem is, it keeps returning 0. I have tried to force to divide speed and 100 as doubles, which had no different results. Can anyone give me some insight in this?

Thanks in advance.