Rate This Document
Findability
Accuracy
Completeness
Readability

Description and Constraints

  1. For arithmetic operators, the input is of the double type, and the output is of the integer type (for cryptographic comparison) or the double type (for cryptographic addition, subtraction, maximum, minimum, multiplication, division, averaging, summation, and sorting).
  2. When the double-type input is used for calculation, the value multiplying by 10 raised to the power of the given precision is validated to fit within a 32-bit representation to ensure the calculation result does not overflow. However, results of the subsequent internal u64 operations may exceed the u64 limit.
  3. For cryptographic multiplication and division operators, errors may occur in double-type calculations: The input data is rounded off based on the precision settings. For example, if the precision is set to 2, the third decimal place of the input data is rounded off, and therefore the input data has two decimal places. In addition, the calculation result is truncated according to the precision settings. For example, if the precision is set to 2, the calculation result retains only two decimal places, and other higher decimal places are discarded. If the decimal place increase is not involved during the calculation of other arithmetic operators, the actual calculation result is output.
  4. The communication callback relies on a secure, encrypted transmission channel established by the calling party. The section "API Call Demos" provides a socket-based implementation for reference.