Bridgette Puddles Posted October 13, 2020 Posted October 13, 2020 integer A = 99 integer B = 100 What I want to do is take integer A max of 99 and carry over anything over 99 to integer B. Not sure how I would work that in lsl. I have looked at the wiki and done some goggle searches all failed. Seems there is not a lot of info for simple math in lsl. But hey any tips on it would help.
KT Kingsley Posted October 13, 2020 Posted October 13, 2020 integer carry_over = number - maximum; if (carry_over < 0) carry_over = 0; else number = maximum; I think.
Bridgette Puddles Posted October 13, 2020 Author Posted October 13, 2020 thanks you two, I was a bit lost on it. but works out well 1
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now