{"action":"created","issue":{"url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/49","labels_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/49/comments","events_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/49/events","html_url":"https://github.com/MikeMcl/bignumber.js/issues/49","id":54931016,"number":49,"title":"Provide method for moving the decimal point","user":{"login":"clark800","id":1238722,"avatar_url":"https://avatars.githubusercontent.com/u/1238722?v=3","gravatar_id":"","url":"https://api.github.com/users/clark800","html_url":"https://github.com/clark800","followers_url":"https://api.github.com/users/clark800/followers","following_url":"https://api.github.com/users/clark800/following{/other_user}","gists_url":"https://api.github.com/users/clark800/gists{/gist_id}","starred_url":"https://api.github.com/users/clark800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clark800/subscriptions","organizations_url":"https://api.github.com/users/clark800/orgs","repos_url":"https://api.github.com/users/clark800/repos","events_url":"https://api.github.com/users/clark800/events{/privacy}","received_events_url":"https://api.github.com/users/clark800/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T19:56:48Z","updated_at":"2015-02-18T13:20:51Z","closed_at":"2015-02-18T13:20:51Z","body":"The docs say that BigNumber.e should be considered read-only, and my testing confirms that setting it is not reliable. It seems that given the internal representation, it should be easy to add a \"shift\" method that moves the decimal point. This would be equivalent to multiplying/dividing by powers of 10, but much more efficient and not requiring setting DECIMAL_PLACES to much larger numbers (if you have a large number and multiply by 10^(-50), the second term can get truncated to 0, making the result 0).\r\n\r\nThis would be very useful for the obvious application of multiplying by powers of 10, but also for situations where you need to convert to a different BigNumber representation and you need to extract the first N digits of the mantissa."},"comment":{"url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/comments/74862332","html_url":"https://github.com/MikeMcl/bignumber.js/issues/49#issuecomment-74862332","issue_url":"https://api.github.com/repos/MikeMcl/bignumber.js/issues/49","id":74862332,"user":{"login":"MikeMcl","id":921201,"avatar_url":"https://avatars.githubusercontent.com/u/921201?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeMcl","html_url":"https://github.com/MikeMcl","followers_url":"https://api.github.com/users/MikeMcl/followers","following_url":"https://api.github.com/users/MikeMcl/following{/other_user}","gists_url":"https://api.github.com/users/MikeMcl/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMcl/subscriptions","organizations_url":"https://api.github.com/users/MikeMcl/orgs","repos_url":"https://api.github.com/users/MikeMcl/repos","events_url":"https://api.github.com/users/MikeMcl/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMcl/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T13:20:50Z","updated_at":"2015-02-18T13:20:50Z","body":"Added a `shift` method in v2.0.1."}}