K
Krenzathal77
Guest
Hi folks,
I'm looking for a way to quickly sum the lesser integers of a number.
eg:
10 would = 55 (10+9+8+7+6+5+4+3+2+1)
4 would = 10 (4+3+2+1)
I was sure that there was a function called "sum" to handle this and you used it like:
var (xnumber) = sum(10)
and this would put 55 into the xnumber variable, but I must have imagined it as I can't find it anywhere. I can make my own, but on the off chance I just have the name wrong, is there anything that can do this?
Thanks!
(I'm using GM:Studio 1.4)
I'm looking for a way to quickly sum the lesser integers of a number.
eg:
10 would = 55 (10+9+8+7+6+5+4+3+2+1)
4 would = 10 (4+3+2+1)
I was sure that there was a function called "sum" to handle this and you used it like:
var (xnumber) = sum(10)
and this would put 55 into the xnumber variable, but I must have imagined it as I can't find it anywhere. I can make my own, but on the off chance I just have the name wrong, is there anything that can do this?
Thanks!
(I'm using GM:Studio 1.4)