Total cash is not the buy amount
Decide first which number is $100. If $100 is the total leaving your bank, the fee comes out of it and less than $100 is converted. If $100 is the buy amount, the fee is added on top and more than $100 leaves your bank.
The example uses the first reading: $100.00 out, $98.00 converted after a hypothetical $2.00 fee.