Under the weighted-average method, the cost of ending work in process inventory is determined by dividing the equivalent units of production for ending inventory by the cost per equivalent unit for each cost category and then summing the result.

True or False?