How do you say π^π^π?
R-bloggers 2014-09-15
(This article was first published on Econometrics by Simulation, and kindly contributed to R-bloggers)

one quintillion, three hundred forty quadrillion, one hundred sixty-four trillion, one hundred eighty-three billion, six million, three hundred thirty-nine thousand, eight hundred forty
And yes you can find out how to write your very own absurdly long numbers as well in R! I have adapted John Fox's numbers2words function in order to allow for both absurdly long words as well as decimals. We can see some examples below:
> number2words(.1) [1] "one tenths" > number2words(94.488) [1] "ninety-four and four hundred eighty-eight thousandths" > number2words(-12187.1, proper=T) [1] "minus twelve thousand, one hundred eighty-seven and one tenths" [2] "12,187.1" > number2words(123) [1] "one hundred twenty-three"You can find the code on github
To leave a comment for the author, please follow the link and comment on his blog: Econometrics by Simulation.
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...