Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > Python

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-25-2006, 06:53 PM   PM User | #1
SHY
New Coder

 
Join Date: Apr 2005
Location: Kosice, Slovakia
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
SHY is an unknown quantity at this point
weirdness between windows and linux

a m8 of mine was reading thru the python tutorial and while he was trying out some float numbers formatting, he came to a weird result (note: he is using windowsXP):

Code:
>>> print '%0.50f' % (22.0/7.0)
3.14285714285714280000000000000000000000000000000000
this is what i get on linux:

Code:
>>> print '%0.50f' % (22.0/7.0)
3.14285714285714279370154144999105483293533325195312
how the hell is this possible?
__________________
"Programming is an art form that fights back."
SHY is offline   Reply With Quote
Old 10-25-2006, 09:02 PM   PM User | #2
Shoot2Kill
Regular Coder

 
Join Date: Oct 2006
Posts: 181
Thanks: 1
Thanked 6 Times in 6 Posts
Shoot2Kill is an unknown quantity at this point
cos windowze sucks....
__________________
Quote:
Originally Posted by Excavator
write it for firefox then hack it for IE
Shoot2Kill is offline   Reply With Quote
Old 11-16-2006, 11:26 PM   PM User | #3
rawriddle
New to the CF scene

 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rawriddle is an unknown quantity at this point
http://www.cprogramming.com/tutorial...sentation.html

Read that, and you'll have either an understanding or a better idea; if the latter, and you're still interested, do some more research.
rawriddle is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:44 PM.


Advertisement
Log in to turn off these ads.