addaptic

Reference Setup

lzu_set_answer_limit

Sets how many places an answer may need before it is refused, for the whole process.

long lzu_set_answer_limit( long lPlaces );

Every function sizes its answer before it starts. One whose order of magnitude would pass the limit is refused at once rather than worked out: the answer is zeroed, kTooLarge returned, and the answer flagged infinite if it was too large. The size counted is the whole places of a large answer, or the noughts after the point of a small one. The default is 100,000 places.

It returns the limit that was in force, so it can be put back. A limit of nought or less restores the default. The limit belongs to the whole process, so set it before starting threads.

See also

  • lzu_setup Builds the shared table of high-precision constants; call it before anything else.
  • lz_exp_e e raised to the power of the number.
  • lz_factorial The product of the whole numbers from one to the operand, n!.