diff options
author | Anindya Srivastava <sanindya-iiitd@users.noreply.github.com> | 2019-02-01 21:55:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 21:55:22 +0530 |
commit | fa9f9fd5639458b7865a48192c4dc18e7ef15d66 (patch) | |
tree | 06f39eae58934581b8e1a43979a06cfac239f6b6 /pt-br/python-pt.html.markdown | |
parent | 63abe3316cc22d64c6612d3c092e57058d61158d (diff) |
Type correction for the output of math.sqrt()
Both in Python 2.7.10 and Python 3.6.5, math.sqrt() returns a float and not int. It seems like a tiny thing but sometimes may lead up to bigger confusions. For example: https://stackoverflow.com/questions/54474037/why-are-the-following-codes-giving-me-different-output-square-root-big-numbers/54475501#54475501
Diffstat (limited to 'pt-br/python-pt.html.markdown')
0 files changed, 0 insertions, 0 deletions