Hello

So I won’t explain why I need to do that but suppose I have a function like this

```
float calculateSomething( int input )
{
return input * <multiplier calculation here>
}
```

I need this function to output values like so:

For an input value 128, it would be multiplied by 16

For an input value 256, it would be multiplied by 4

For an input value 512, it would be multiplied by 1

For an input value 1024, it would be multiplied by 0.25

…

etc **but not only for powers of 2 as input, but for any numbers** . I can’t find how I can calculate these values. Maybe something about shifting bits, but I don’t see a pattern

I think it’s simple but I just don’t find it… Any idea? Thanks in advance