Skip to content
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

Python Division Behaviour #38

Open
QFSW opened this issue Mar 19, 2019 · 1 comment
Open

Python Division Behaviour #38

QFSW opened this issue Mar 19, 2019 · 1 comment

Comments

@QFSW
Copy link

QFSW commented Mar 19, 2019

Taking the following fragment of C

return 3 / 2;

This would yield 1 as it it performs integer division
When converting this to Python, do we want to keep the integer division (ala Python 2) or do we want to use the Python 3 / behaviour that would yield 1.5?

@liqinyang
Copy link

I don’t think division operation need to be supported in the translator as it is not in the spec.

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