Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Introduce NewNumberForTesting and NewNumber

Choose a tag to compare

@keep94 keep94 released this 17 Jan 04:50
· 29 commits to master since this release

New Features

  • NewNumberForTesting like NewNumberFromBigRat returns Number instances that can be used for testing. With NewNumberForTesting, the caller specifies the fixed and repeating portions of the mantissa making it easier to use than NewNumberFromBigRat
  • Introduce the Generator interface which can generate the digits for arbitrary numbers, not just square roots and cube roots.
  • Introduce NewNumber which returns a Number instance based on a Generator.