Bitcoin Forum
May 08, 2024, 01:34:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Mtgox using single precision float for bitcoin?  (Read 1879 times)
gmaxwell (OP)
Staff
Legendary
*
Offline Offline

Activity: 4172
Merit: 8414



View Profile WWW
June 03, 2011, 06:25:56 AM
 #1

I put in a sell order for 1 BTC on MTGOX at 1e120, just to see what the limit was. The system now reports I have an open order at 3.40282e+38.

This doesn't fill me with confidence. Might make some of the weird rounding on orders I've heard people complain about in IRC make more sense...

1715175268
Hero Member
*
Offline Offline

Posts: 1715175268

View Profile Personal Message (Offline)

Ignore
1715175268
Reply with quote  #2

1715175268
Report to moderator
1715175268
Hero Member
*
Offline Offline

Posts: 1715175268

View Profile Personal Message (Offline)

Ignore
1715175268
Reply with quote  #2

1715175268
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715175268
Hero Member
*
Offline Offline

Posts: 1715175268

View Profile Personal Message (Offline)

Ignore
1715175268
Reply with quote  #2

1715175268
Report to moderator
1715175268
Hero Member
*
Offline Offline

Posts: 1715175268

View Profile Personal Message (Offline)

Ignore
1715175268
Reply with quote  #2

1715175268
Report to moderator
1715175268
Hero Member
*
Offline Offline

Posts: 1715175268

View Profile Personal Message (Offline)

Ignore
1715175268
Reply with quote  #2

1715175268
Report to moderator
Astro
Sr. Member
****
Offline Offline

Activity: 284
Merit: 250



View Profile
June 03, 2011, 07:00:54 AM
 #2

yikes
somestranger
Hero Member
*****
Offline Offline

Activity: 487
Merit: 500


Are You Shpongled?


View Profile
June 03, 2011, 07:34:16 AM
 #3

This doesn't fill me with confidence.

Me either... why wouldn't they use double precision?
cdhowie
Full Member
***
Offline Offline

Activity: 182
Merit: 107



View Profile WWW
June 03, 2011, 07:40:46 AM
 #4

Me either... why wouldn't they use double precision?
Why wouldn't they use fixed-point?  Floating point is for when you don't know how many decimal places you need.  With Bitcoin you know exactly how many you need; Mt. Gox should not use floating point at all.

Tips are always welcome and can be sent to 1CZ8QgBWZSV3nLLqRk2BD3B4qDbpWAEDCZ

Thanks to ye, we have the final piece.

PGP key fingerprint: 2B7A B280 8B12 21CC 260A  DF65 6FCE 505A CF83 38F5

SerajewelKS @ #bitcoin-otc
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!