summaryrefslogtreecommitdiff
path: root/internal/repl/commands.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-11 20:58:46 +0300
committerPaul Buetow <paul@buetow.org>2026-04-11 20:58:46 +0300
commit4efc8d2c03e91ea330cbb9366a60e7405ebca8de (patch)
tree538259a91f7c87971cda78cd881e6c74343238ee /internal/repl/commands.go
parent4465f7abdc72887a422b2ddd9afc43ee811b2e9b (diff)
Refactor number.go Float64() to return errors
- Float64() now returns (float64, error) instead of just float64 - All arithmetic methods (Add, Sub, Mul, Div, Pow, Mod, Compare) return errors - IsString() and IsSymbol() added to Number interface - Float and Rat now implement IsString() and IsSymbol() - StringNum and Symbol updated to implement complete Number interface - IsZero() updated to use val, _ := Float64() pattern - ToFloat() updated to ignore error from Float64()}
Diffstat (limited to 'internal/repl/commands.go')
0 files changed, 0 insertions, 0 deletions