Abstract
When implementing Python 2 and Python 3 compatibility in a single code base, division won’t truncate unless double slashes are used, or __future__ importation to division is done.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Joannah Nanjekye
About this chapter
Cite this chapter
Nanjekye, J. (2017). Numbers. In: Python 2 and 3 Compatibility. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2955-2_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2955-2_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2954-5
Online ISBN: 978-1-4842-2955-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)