C (gcc), Precision limited by built-in types, (削除) 42 (削除ここまで) 36 bytes
__int128 f(__int128 n){n/=sqrtl(2);}
Floor for the most part but the last output is ceiling.
Uses GCC's __int128 type: shorter in text length than unsigned long, and can represent every value in unsigned long, and also determined to not be a builtin type. Stay tuned for 6-8 weeks to get arbitrary precision.
S.S. Anne
- 3.4k
- 11
- 31