- objWorkSheet.Cells(i + 2, 1) = Round(sketchPoints(i).X * 1000, 2)
- objWorkSheet.Cells(i + 2, 2) = Round(sketchPoints(i).Y * 1000, 2)
- objWorkSheet.Cells(i + 2, 3) = Round(sketchPoints(i).Z * 1000, 2)
复制代码 Round(sketchPoints(i).Z * 1000, 2)中的,2就是指保留小数点后2位,改为,5就是保留小数点后5位
- objWorkSheet.Cells(i + 2, 1) = Round(sketchPoints(i).X * 1000, 5)
- objWorkSheet.Cells(i + 2, 2) = Round(sketchPoints(i).Y * 1000, 5)
- objWorkSheet.Cells(i + 2, 3) = Round(sketchPoints(i).Z * 1000, 5)
复制代码
|