diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-11 20:58:46 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-11 20:58:46 +0300 |
| commit | 4efc8d2c03e91ea330cbb9366a60e7405ebca8de (patch) | |
| tree | 538259a91f7c87971cda78cd881e6c74343238ee /internal/repl/repl_completer_test.go | |
| parent | 4465f7abdc72887a422b2ddd9afc43ee811b2e9b (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/repl_completer_test.go')
0 files changed, 0 insertions, 0 deletions
