Jump to content

Recommended Posts

Posted

How do you calculate pi using Base 16?

 

According to Wikipedia it's 3.243F6A8885A308D31319… but how did they arrive at that number?

Posted

Of course no one except the person who wrote it can tell you how he/she arrived at this number. Here's a little pseudo-code for conversion:

float f = number<16.
vector<int> digits.
while (you haven't got enough) {
 int i = integer_part(f).
 digits.append(i).
 f -> (f-i)*16.
}

It't quite the same as if you were scanning for the decimals of a number except that you replace base 10 with base 16.

Posted
What's π in Hexadecimal?

 

it simply donates Number, as certain combinations of letters used in Hex could be mistaken for words.

sometimes a `H` is used also.

 

Also... in Hex there is realistically no difference in Pi to look at than there is in Decimal on a Pure basis (it falls between 1 and F), however in Reality using 4 bit binary there is a translation!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.