Oliver Hope 261 Posted October 2, 2021 Here is something that I should imagine being easy to add. Can we get the constant Pi under the maths section. Please and thanks☺️ 2 Share this post Link to post Share on other sites
Igor Q. 519 Posted October 3, 2021 (edited) If you *badly* want PI to a high degree of precision, it could be written as OR you can use PIfast (Im too lazy to write it myself) though, writing it in code would be hella difficult! Imo, just copy paste the number and save yourself the headache... ? Edited October 3, 2021 by Igor Q. 4 Share this post Link to post Share on other sites
Oliver Hope 261 Posted October 3, 2021 @Igor Q. thats pretty cool to know, but surely so much of that precision just gets lost if a number value is only 4 bytes? Not sure exactly how variables are handled in ylands (or any dynamic type checking language for that matter)... do they maybe dynamically change size up to 8 bytes ? Yeah I just make a variable and copy in Pi, I just think it would be nice to have an inbuilt constant, its a pretty important number for maths? 1 Share this post Link to post Share on other sites
Igor Q. 519 Posted October 7, 2021 On 10/3/2021 at 5:54 PM, Oliver Hope said: Yeah I just make a variable and copy in Pi, I just think it would be nice to have an inbuilt constant, its a pretty important number for maths? You can blame the devs for making the trigonometric functions not calculate in radians 1 Share this post Link to post Share on other sites
Houp 237 Posted October 18, 2021 Hi, very nice (although not efficient ) solution. My would be just: All numbers in our scripts are "C# doubles" inside. Maybe this piece of information can be helpful for some of you. 1 1 Share this post Link to post Share on other sites