Bitcoin Forum
April 25, 2017, 06:39:48 PM *
News: If the forum does not load normally for you, please send me a traceroute.
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: Mtgox using single precision float for bitcoin?  (Read 1715 times)
Offline Offline

Activity: 2156

View Profile
June 03, 2011, 06:25:56 AM

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

The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Hero Member
Offline Offline

Posts: 1493145588

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
Sr. Member
Offline Offline

Activity: 242

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

Hero Member
Offline Offline

Activity: 485

Are You Shpongled?

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

This doesn't fill me with confidence.

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

Activity: 182

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

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]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!