Calc: precision modes, fractions, percent, radix and more functions !410

merged merged by cmc on 2026-11-20 18:38 UTC · krz/orgstar:parity-calc into main

Discussion

cmc

Milestone M3 of docs/plans/2026-11-20-parity.md.

  • Precision pN from 3 to 18, with Calc's two extra digits for functions.
  • Juxtaposition, postfix %, ! and !!, fraction literals 1:3, radix integers N#digits; table fields like 1:30 read as fractions.
  • Function forms of the comparison and logic operators; && and || return an argument.
  • Multi-argument statistics and vgmean vhmean vcov vpcov vcorr vflat agmean.
  • rounde roundu fdiv frac sign gcd lcm choose perm pow exp10 nroot hypot log(x,b), hyperbolic functions, arctan2 deg rad float pfloat dfact.
  • exp, ln and powers ported from math-pow, exact fraction powers, vmax/vmin at two extra digits; interval syntax refused.

Constants (pi, e, phi, gamma) stay refused: Calc returns them as symbols (M5).

All cases are compared with Emacs 31.1 Calc. swift test passes.