Commit Graph
2 Commits
Author SHA1 Message Date
waozi a231bc3fe5 Complete complex pow parity and sub-second datetime rendering
Complex powers now flow through goffice's go_complex_powx algorithm:
kryon's kry_quad gains the quad-precision machinery it needs — natural
log with scaling and a Newton step, hypot with over/underflow
protection, Carlson's AGM arcsin/arccos/arctan, atan2/atan2pi with
axis and diagonal special cases, reduce-half sinpi/cospi with Newton
refinement, mulmod1 modulo-one argument reduction, and the
correctly-rounded pi/2pi/pihalf/ln2/sqrt2 double-double constants.
IMIGAMMA (and every other complex-power consumer) is now bit-exact
for arbitrary complex arguments; the special_functions fixture gains
the five previously excluded rows.

Datetime cells with a fractional-second component now render
milliseconds like gnumeric (rounded, omitted when zero or carried
into the seconds), so UNIX2DATE handles sub-second timestamps
exactly; the datetime_functions fixture gains those rows too. All 27
fixtures remain 1:1 with ssconvert including round-trips, with the
456-function manifest fully dispatched.
2026-09-05 11:32:26 -03:00
waozi 90c8ebe731 Add UNIX2DATE, TIMEVALUE, and ODF.TIME with 1:1 gnumeric parity
UNIX2DATE converts Unix timestamps via the local timezone (struct
tm's UTC offset, matching go_date_timet_to_serial_raw's localtime
behavior) with gnumeric's overflow check, displayed through a new
date-and-time cell rendering that also omits a zero time part like
gnumeric does. TIMEVALUE extracts the fractional day from numbers
and parses colon-separated clock strings. ODF.TIME returns the time
serial rendered as a datetime value like gnumeric's date-formatted
result. Fractional-second display (sub-second serials) is not yet
supported and is kept out of the fixture. New datetime_functions
fixture with 12 rows; 24 fixtures now 1:1 with ssconvert including
round-trips.
2026-09-05 10:40:14 -03:00