diff options
| author | Adam Soltys <[email protected]> | 2012-10-18 16:33:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-10-18 16:33:40 -0700 |
| commit | eba4ae19d9316efa7f15f7113b82776288b92faa (patch) | |
| tree | 48c86dceb693a9635ad1cb35474668c9c67f9db7 /js | |
| parent | 499fe9e7cca00b7c10ef92c3c93e3dd720603797 (diff) | |
| download | coinos-server-eba4ae19d9316efa7f15f7113b82776288b92faa.tar.gz coinos-server-eba4ae19d9316efa7f15f7113b82776288b92faa.zip | |
Display two decimals
Diffstat (limited to 'js')
| -rw-r--r-- | js/bitcoin_pos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bitcoin_pos.js b/js/bitcoin_pos.js index 4cbe9ad4..f929a477 100644 --- a/js/bitcoin_pos.js +++ b/js/bitcoin_pos.js @@ -49,10 +49,10 @@ $(function() { } $.getJSON('ticker.json', function (data) { - exchange = 100 / data.out; + exchange = 1000 / data.out; exchange = exchange + exchange * 0.03; exchange = Math.ceil(exchange * 100) / 100; - $('#exchange').val(exchange); + $('#exchange').val(exchange.toFixed(2)); updateTotal(); }); |
