Change editor units from centimeters to meters

How do you get it using c++?