LangProc / langproc-2018-cw

5 stars 4 forks source link

Python Division Behaviour #38

Open QFSW opened 5 years ago

QFSW commented 5 years ago

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 commented 5 years ago

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