Bitcoin Forum
December 08, 2016, 02:36:36 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Bitcoinica - 15169.57 BTC Traded in the last 24 hours  (Read 4274 times)
hmongotaku
Full Member
***
Offline Offline

Activity: 168


View Profile WWW
September 13, 2011, 02:03:54 AM
 #41

instant millionaire?

1481164596
Hero Member
*
Offline Offline

Posts: 1481164596

View Profile Personal Message (Offline)

Ignore
1481164596
Reply with quote  #2

1481164596
Report to moderator
1481164596
Hero Member
*
Offline Offline

Posts: 1481164596

View Profile Personal Message (Offline)

Ignore
1481164596
Reply with quote  #2

1481164596
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481164596
Hero Member
*
Offline Offline

Posts: 1481164596

View Profile Personal Message (Offline)

Ignore
1481164596
Reply with quote  #2

1481164596
Report to moderator
zhoutong
VIP
Hero Member
*
Offline Offline

Activity: 490


View Profile WWW
September 13, 2011, 02:22:38 AM
 #42


It has already been fixed. Make sure you don't withdraw your whole balance at once. Because your balanced may be rounded up and you won't have enough for withdrawal.

Thanks!

Floating point numbers are not recommended for storing currency.

For calculations, if your float can not store 123456123456789, you probably are not using enough precision.

I believe he was referring to minimum account balance for withdrawal. i.e. 100 USD, you withdraw 98 USD and the 2 USD is trapped.

-Jonathan

Not exactly. If your balance is $99.999, the system will show $100.00. But you can't withdraw $100.00 because you only have $99.999.

This is what I mean. It's better to withdraw one cent less.

Founder of NameTerrific (https://www.nameterrific.com/). Co-founder of CoinJar (https://coinjar.io/)

Donations for my future Bitcoin projects: 19Uk3tiD5XkBcmHyQYhJxp9QHoub7RosVb
lemonginger
Full Member
***
Offline Offline

Activity: 210


firstbits: 121vnq


View Profile
September 13, 2011, 02:55:31 AM
 #43

So are you storing money as a float or just displaying it rounded to nearest cent?
zhoutong
VIP
Hero Member
*
Offline Offline

Activity: 490


View Profile WWW
September 13, 2011, 03:03:13 AM
 #44

So are you storing money as a float or just displaying it rounded to nearest cent?

We're using Decimal type in our PostgreSQL database. Money are displayed in either 2 d.p. or 4 d.p.

There's no rounding in processing of money. Only the displayed value is rounded.

I will change the withdrawal system to display rounded-down money instead. (Since a $99.999 customer shouldn't be able to withdraw $100.00, the system shouldn't display it as $100.00. We will display it as $99.99 instead.)

Not being able to withdraw $100.00 from a $99.9999999999 account is an indication that we don't use float for money.

Founder of NameTerrific (https://www.nameterrific.com/). Co-founder of CoinJar (https://coinjar.io/)

Donations for my future Bitcoin projects: 19Uk3tiD5XkBcmHyQYhJxp9QHoub7RosVb
2112
Legendary
*
Offline Offline

Activity: 1708



View Profile
September 13, 2011, 03:48:30 AM
 #45

So are you storing money as a float or just displaying it rounded to nearest cent?
There's nothing wrong with using floats to represent money, so long as the floats used are decimal. Twenty first century brought up the resurgence of decimal floating point. Nowadays pretty much everyone supports them. Check out the following page:

http://speleotrove.com/decimal/

Decimal floating point good! Binary floating point bad!

I think Bitcoinica is implemented mostly in Ruby, so the following will be relevant:

http://ruby-decimal.rubyforge.org/

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
quattro
Member
**
Offline Offline

Activity: 67


View Profile
September 13, 2011, 07:13:17 AM
 #46

When will the issue with withdrawals be fixed?

I have been unable to withdraw my funds out of bitcoinica for 12 hours.

Thanks!

It has already been fixed. Make sure you don't withdraw your whole balance at once. Because your balanced may be rounded up and you won't have enough for withdrawal.

Thanks!

That doesn't make sense ... MtGox codes support more than two decimal places.  Why are users unable to withdraw the correct amount?  Why is it being rounded in the first place?

PM me if you need hosting for your FPGA or ASIC miner.  Secure, air conditioned facility... will beat competitor pricing.  Over 15 years in the hosting industry.
zhoutong
VIP
Hero Member
*
Offline Offline

Activity: 490


View Profile WWW
September 13, 2011, 08:33:57 AM
 #47

When will the issue with withdrawals be fixed?

I have been unable to withdraw my funds out of bitcoinica for 12 hours.

Thanks!

It has already been fixed. Make sure you don't withdraw your whole balance at once. Because your balanced may be rounded up and you won't have enough for withdrawal.

Thanks!

That doesn't make sense ... MtGox codes support more than two decimal places.  Why are users unable to withdraw the correct amount?  Why is it being rounded in the first place?

You may have understood it.

For example a user has $99.99999999 balance, but our site's sidebar can only fit in limited digits, so it's shown as $100.00. If the user assumes that he has $100.00 and wants to take his money out, he won't be able to do so because he doesn't have this amount of money.

So our solution is to show $99.99. If the user explicitly request for the remaining funds, we will be able to check the exact value and fulfill their requests.

Founder of NameTerrific (https://www.nameterrific.com/). Co-founder of CoinJar (https://coinjar.io/)

Donations for my future Bitcoin projects: 19Uk3tiD5XkBcmHyQYhJxp9QHoub7RosVb
Pages: « 1 2 [3]  All
  Print  
 
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!