Jump to content

What's π in Hexadecimal?

Featured Replies

How do you calculate pi using Base 16?

 

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

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.

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!

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.