Skip to content

More built-in functions: ROUND(), MOD(), MAX(), MIN(), TIME(), YEAR()/MONTH()/DAY() #4

Description

@DDecoene

The expression engine supports 20+ built-ins (src/interpreter/Builtins.ts) but is missing several dBASE III standards:

  • ROUND(n, decimals)
  • MOD(a, b)
  • MAX(a, b) / MIN(a, b)
  • TIME() — current time as HH:MM:SS
  • YEAR(date), MONTH(date), DAY(date) — numeric date parts

Builtins.ts functions are stateless and individually tiny — a great first contribution. Add each with a Vitest case (see existing function tests for the pattern). Picking just one or two of these is a perfectly fine PR.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions