BitShares Forum
Main => General Discussion => Topic started by: blinkwang182 on December 25, 2014, 04:53:40 am
-
FOR EXAMPLE:
ASK-a3291a06 MARKET
ASK-a3291a06 blinkwang182
fill ask @ 9.684292078249 BTSBOTS / CNY
ask proceeds @ 9.684292078249 BTSBOTS / CNY
91.69 CNY
887.95 BTSBOTS
0.00 BTS
ASK-4f3474bc MARKET
ASK-4f3474bc blinkwang182
fill ask @ 9.606147934678 BTSBOTS / CNY
ask proceeds @ 9.606147934678 BTSBOTS / CNY
1,966.01 CNY
18,885.78 BTSBOTS
0.00 BTS
-
FOR EXAMPLE:
ASK-a3291a06 MARKET
ASK-a3291a06 blinkwang182
fill ask @ 9.684292078249 BTSBOTS / CNY
ask proceeds @ 9.684292078249 BTSBOTS / CNY
91.69 CNY
887.95 BTSBOTS
0.00 BTS
ASK-4f3474bc MARKET
ASK-4f3474bc blinkwang182
fill ask @ 9.606147934678 BTSBOTS / CNY
ask proceeds @ 9.606147934678 BTSBOTS / CNY
1,966.01 CNY
18,885.78 BTSBOTS
0.00 BTS
I don't understand the problem. Can you write the "before" state, the "after" state, and what you expected to see?
-
FOR EXAMPLE:
ASK-a3291a06 MARKET
ASK-a3291a06 blinkwang182
fill ask @ 9.684292078249 BTSBOTS / CNY
ask proceeds @ 9.684292078249 BTSBOTS / CNY
91.69 CNY
887.95 BTSBOTS
0.00 BTS
ASK-4f3474bc MARKET
ASK-4f3474bc blinkwang182
fill ask @ 9.606147934678 BTSBOTS / CNY
ask proceeds @ 9.606147934678 BTSBOTS / CNY
1,966.01 CNY
18,885.78 BTSBOTS
0.00 BTS
I don't understand the problem. Can you write the "before" state, the "after" state, and what you expected to see?
887.95 BTSBOTS/91.69 CNY =9.68426218780674,why not the 9.684292078249?
-
I think the 9.684292078249 and the 9.606147934678 have the most significant bits. So you need to start your equations with those.
round ( 91.69 CNY * 9.684292078249 ) = 887.95 BTSBOTS
round ( 966.01 CNY * 9.606147934678 ) = 18885.78 BTSBOTS
So, you can't start with the two inputs with lesser resolution and arrive at the correct higher resolution number.