Working with real numbers
The sizes of pieces optimized by the component are specified as integer numbers. This choice has been made for speed purposes.
However, there is an easy way to transform real numbers (containing decimal dot) such as double type from C++.
Assume that we have the following numbers (representing some sizes to be cut):
This numbers can be scaled to become integer numbers by multiplying all of them with some power of 10. In our case we have to multiply them by 100.
We get the following integer sizes:
The following properties and methods are affected by this transformation: SetDemandPiece, SetRepositoryPiece, BladeThickness, and the methods and properties used for getting the results.
back to index