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