Skip to content

Make calculations more consistent#335

Merged
tolik518 merged 2 commits intotolik518:masterfrom
Aras14HD:auto-lower-number
Mar 7, 2026
Merged

Make calculations more consistent#335
tolik518 merged 2 commits intotolik518:masterfrom
Aras14HD:auto-lower-number

Conversation

@Aras14HD
Copy link
Collaborator

@Aras14HD Aras14HD commented Mar 7, 2026

As asked here, made calculations more consistent when writing in different ways.

For that this parses small 10^ and ^(...)10 expressions as integers.
To not break previous calculations too much, 1 × is left away in truncate and rough is not returned as true in truncate when only zeroes were cut .

Additionally for correctness and performance, Approximate and ApproximateDigits are only turned into integers when below the integer_construction_limit and calculates termial of ApproximateDigits like Approximate.

parse small "digits"s and "tower"s as integer
calculate more exact termial of "digits"
do not write 1 × in truncate
do not return rough as true in truncate when only zeroes were cut
only turn "approx" and "digits" into integers when below integer_contruction_limit
@tolik518
Copy link
Owner

tolik518 commented Mar 7, 2026

I can't pull the master-branch from my repo into your fork and I don't trust myself resolving the conflicts inside the calculation_results - could you please resolve the conflicts? @Aras14HD

@tolik518 tolik518 merged commit b089180 into tolik518:master Mar 7, 2026
6 checks passed
@Aras14HD Aras14HD deleted the auto-lower-number branch March 7, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants