Failure su grandi numeri #9
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
itec/banana#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
Per un problema di arrotondamento in encode() non codifica correttamente grandi numeri, ad esempio con
ottengo
Soluzione
Basta usare la divisione intera anziché
int()- in libbanana.py linea 31 usarev //= len(alphabets[idx])invece di
v = int(v / len(alphabets[idx]))