Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    SHY
    SHY is offline
    New Coder
    Join Date
    Apr 2005
    Location
    Kosice, Slovakia
    Posts
    36
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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."

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Posts
    181
    Thanks
    1
    Thanked 6 Times in 6 Posts
    cos windowze sucks....
    Quote Originally Posted by Excavator
    write it for firefox then hack it for IE

  • #3
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •