Timeline for Compute the first N digits of e
Current License: CC BY-SA 2.5
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Mar 13, 2011 at 22:48 | comment | added | steenslag | Looks fine here, it just adds some imprecise digits. Mayby like this? require'bigdecimal/math';puts BigMath::E(a=gets.to_i).to_s(?F)[0,a+1] | |
Mar 13, 2011 at 10:48 | comment | added | david4dev | You're right, but it should work in Ruby 1.9. There seems to be something wrong with precision in the E function. | |
Mar 13, 2011 at 10:34 | history | edited | david4dev | CC BY-SA 2.5 |
deleted 24 characters in body; edited body
|
Mar 13, 2011 at 9:57 | comment | added | jfs | it doesn't work on ruby1.8. It produces invalid results on ruby1.9 | |
Mar 13, 2011 at 1:08 | history | answered | david4dev | CC BY-SA 2.5 |