I would like to compare the following two sentences in terms of meaning so as to see how replacing modifiers can cause to change the meaning completely.
He earned nearly $100.
He nearly earned $100.
For me, the first sentence has a sense that he earns an amount close to $100 or almost $100. However, I could not figure out if the second sentence has a misleading meaning or it does not just make a sense.