YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Updated std math libraries
matty
#1 Posted : Sunday, August 20, 2017 8:28:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/12/2017(UTC)
Posts: 8

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Are there any plans in the works for updates for the math standard library? I find there are some useful functions that are missing such as:

Code:

min(a, b, ...)
max(a, b, ...)
random([a [, b]])
deg(rad)
rad(deg)



min, max
Returns smallest of two or more values.

random
- random() Returns a random number between 0 and 1.
- random(a) Returns a random number between 0 and `a`.
- random(a, b) Returns a random number between `a` and `b`.

deg, rad
Converts radians to degrees and vice-versa.

I know these types of functions can be implemented easily in squirrel, but it would be nice for these functions to come standard in the math library.

If there are no plans, I could send a pull request with the changes already implemented.

- Mat
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.054 seconds.