Files
javis_bot/tests/test_calculator_tool.py
javis-bot 4cdfecee82 fix(tools): calculator reads each written number from its text
The float ast had already rounded each literal, so ceil(1.0000000000000001)
gave 1, 1e-400/1e-400 was refused as a division by zero and 1e400-1e400
as out of range. Float literals are now read from the expression text with
Decimal (written numbers past 1e4000 are refused unparsed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 11:52:41 +09:00

3.1 KiB