M
Modular11mo ago
John

PI in math library?

Does Mojo's math library contain PI? If not what are ways to add it to a mojo module?
2 Replies
benny
benny11mo ago
you could just alias PI = 3.1415...... however many digits you want it will be a compile time constant
sora
sora11mo ago
Or if you want to add it to the stdlib, you could write a feature request on Github.
Want results from more Discord servers?
Add your server