Since 1 US Dollar is equal to 10.071504 Moroccan Dirham, we could say that n United States Dollars are equal to 10.071504 times n Moroccan Dirham. In other words, we could use the following formula:
Moroccan Dirham = United States Dollars x 10.071504
For example, let's say that we want to convert 2.0 United States Dollars to Moroccan Dirham. Then, we just replace United States Dollars in the abovementioned formula with 2.0:
Moroccan Dirham = 2.0 x 10.071504
That is, 2.0 United States Dollars are equal to 20.143008 Moroccan Dirham.