Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This is the nature of
Freestyle Sparring.
We take turns remixing and refactoring each others code. If you want to make the code shorter, just fork it!🍴bro im trying to make the code short
My solution uses only 16 digits but still passes all tests.
I unpublished the challenge because as it is now, it is based on a premise flawed on a very fundamental level.
Unfortunately, but it is very, very far from fixed.
Your initial value is still a float, and is accurate up to 16 decimal places max. You cannot turn a 16-digit float into a decimal and expect it to automagically restore 9984 missing digits.
Can you check what
reference_pi
returns fordigits=10000
? Does it return 10_000 digits?done, issue should be fixed now.
fixing...
How exactly returning 10k decimal places works in this task if the return type is float, and float is accurate to 15-16 decimal digits? My solution calculates max 16 digits and passes all tests.
This is very good. will save it and look into.