Python 2.3.7 has the following functions as number converters: float(num), int(num), long(num). But what happened to double(num)?
If my number is a=3.33333 and do round(_,2), the output I get is 3.3300000000000001. I was expecting to see 3.33.
What’s happening to here?
Thank you.
liliya
l_w 0 Newbie Poster
mn_kthompson 3 Junior Poster
l_w 0 Newbie Poster
woooee 814 Nearly a Posting Maven
l_w 0 Newbie Poster
l_w 0 Newbie Poster
Stefano Mtangoo 455 Senior Poster
woooee 814 Nearly a Posting Maven
l_w 0 Newbie Poster
woooee 814 Nearly a Posting Maven
l_w 0 Newbie Poster
woooee 814 Nearly a Posting Maven
l_w 0 Newbie Poster
l_w 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.