Daecon Posted June 19, 2008 Posted June 19, 2008 How do you calculate pi using Base 16? According to Wikipedia it's 3.243F6A8885A308D31319… but how did they arrive at that number?
timo Posted June 19, 2008 Posted June 19, 2008 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.
YT2095 Posted June 19, 2008 Posted June 19, 2008 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now