Skip to content

Bug with percentage #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jeremias-cuello opened this issue Feb 4, 2024 · 2 comments
Open

Bug with percentage #3

jeremias-cuello opened this issue Feb 4, 2024 · 2 comments

Comments

@jeremias-cuello
Copy link

(x)% ≠ x

@web-codegrammer
Copy link
Owner

Could you please explain/brief it in more details ? 😊

@jeremias-cuello
Copy link
Author

Quiero decir que el operador porcentaje para los humanos es el "%" y para la función eval() no. La función eval lo "entiende" como el resto de una división entera. Por ejemplo: 50 % 40 = 20 pero como eval() lo toma como el resto de dividir 50 en 40, dá como resultado 10. 50 % 40 ≠ 10... Ahora esto se puede arreglar reemplazando el caracter "%" por "mod" que si es comprendido matematicamente por los humanos de igual forma que la funcion eval()

@jeremias-cuello jeremias-cuello changed the title Bug Porcentaje Bug with percentage Feb 5, 2024
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

No branches or pull requests

2 participants