The ammeter series connected with a resistor is refitted into a voltmeter. Why does the indication mean the voltage? What is the principle?

The ammeter series connected with a resistor is refitted into a voltmeter. Why does the indication mean the voltage? What is the principle?

Series resistance can divide voltage, indicating number or current, but through u = IR, R is a fixed value, you can get the value of voltage, voltmeter still measures current, but the value is changed into the corresponding voltage, including resistance meter is also the same principle, which is the application of Ohm's law