更新时间:2022-01-14 19:41:24
你只需要将它除以1000三次即
You just need to divide it thrice by 1000 i.e.
var volume = volumeInMillimeters / (1000 * 1000 * 1000 );
这是因为卷有3个维度。如果你将每个维度乘以1000,那么要在 mm
中得到它,你需要有效地将每个维度除以1000,或者将最终结果除以(1000 * 1000) * 1000)。
This is because volume has 3 dimensions. If you have multiplied each dimension with 1000, then to get it in mm
back, you need to effectively divide each dimension by 1000, or divide the final result by ( 1000 * 1000 * 1000 ).