The correct way to do this is to use division. Using string interpolation just gives you a string, which is unsuitable for passing to Sass functions that expect numbers:
@mixin opacity($value) {
opacity: $value / 10;
}
.foo {
background-color: rgba(5, 5, 5, $value / 10);
}