A
Ari Brown
Alright everybody! Math time!
So today I tried to write a program which would print out, say, 1000
digits of pi. I figured I'd do this by assigning a.... variable......
to be a bignum....... crap, Ruby is duck typing! I mean, yay?
Ok, so to the point. How do I tell Ruby to print a value (.to_f) to a
certain number of integers? .to_f(1000)? And also, how do I write
tan, cos, sin, etc. in Ruby?
Thanks for the help,
math rulez
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.
So today I tried to write a program which would print out, say, 1000
digits of pi. I figured I'd do this by assigning a.... variable......
to be a bignum....... crap, Ruby is duck typing! I mean, yay?
Ok, so to the point. How do I tell Ruby to print a value (.to_f) to a
certain number of integers? .to_f(1000)? And also, how do I write
tan, cos, sin, etc. in Ruby?
Thanks for the help,
math rulez
--------------------------------------------|
If you're not living on the edge,
then you're just wasting space.