kunigaku on Nostr: /run ruby require 'bigdecimal/math' num = BigMath.PI 10000 str = num.to_s "f" puts ...
/run ruby
require 'bigdecimal/math'
num = BigMath.PI 10000
str = num.to_s "f"
puts str[0..10001]
Published at
2024-09-22 08:20:09Event JSON
{
"id": "d83f10e784dd398e7ddb33c828b5affb9b594085339d38c2b7827d389c905494",
"pubkey": "1a35b54ef7752af54cacbeedf0f349e320f0a2ee50142883134c3ee31879ce71",
"created_at": 1726993209,
"kind": 1,
"tags": [],
"content": "/run ruby\nrequire 'bigdecimal/math'\nnum = BigMath.PI 10000\nstr = num.to_s \"f\"\nputs str[0..10001]",
"sig": "ef8935c56bdd77ca50a2d190c28292709b4272ff1b6c63b682c72979f97ac4058c44e7d8a7a0abbff2d46ca7c9bd1fdfa93f6f9e0e340ae939ff50ce88184424"
}