Jump to content

Recommended Posts

Hi I'm trying to convert bitcoin back to pound sterling. 

if bitcoin price is 34992.34

and i invest £100 i get  0.0028653401860809 bitcoin this is correct,

so how do I output the answere in pound sterling , in other words how do i convert 0.0028653401860809 too pound sterling.

not sure what you devide or multiply

any help please.

Link to comment
https://forums.phpfreaks.com/topic/314381-php-convert-one-price-to-another/
Share on other sites

Not really a PHP question but how can that number be correct? You seem to be dividing GBP by USD. You need to convert bitcoin to GBP before you divide. You need to multiply 43992.43 USD by the current exchange rate (presently £0.74169) then divide £100 by that. However, since the exchange rate is constantly changing you need to look that number up somewhere when you do the conversion. Same with bitcoin which is currently $47,090.04 US.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.