ReadonlydisplayASCIIMath rendering of the current state (terminal output, not chainable).
ReadonlytexLaTeX rendering of the current state (terminal output, not chainable).
ReadonlyvalueCopy the mathematical state of another instance into this (display
state is NOT transferred — the receiver keeps its own formatting). Entry
point used when constructing/parsing from a same-type input. Distinct from
clone. Classes without a real implementation throw
NotImplementedError.
Show every numeric value as a decimal with digits digits after the point (exact
values included: 3/2 becomes 1.50 with 2 digits).
integer from 0 to 100, or null to go back to the default display
(exact fractions, approximate values with 3 digits).
Base contract of every PiMath value object: a displayable, duplicable mathematical entity.
Note: construction (
parse/from***) is intentionally NOT part of this contract — input shapes are class-specific and handled per class, not polymorphically. See.claude/specs/pimath-architecture.md.