admin管理员组文章数量:1392007
I have a set of variables of type "integer" and I just want to take the greatest of these values, and set as the value for some new variable. How would I do this in as3? (or any language, I suppose)
I have a set of variables of type "integer" and I just want to take the greatest of these values, and set as the value for some new variable. How would I do this in as3? (or any language, I suppose)
Share Improve this question asked Apr 28, 2011 at 18:40 mheaversmheavers 30.2k63 gold badges200 silver badges326 bronze badges2 Answers
Reset to default 10ActionScript 3:
var highest:Number = Math.max(first, second, third);
where first, second and third are Numbers or ints.
Math.max(var1, Math.max(var2, var3))
本文标签: javascriptselect the highest value in a set of 3 numbers using flash as3Stack Overflow
版权声明:本文标题:javascript - select the highest value in a set of 3 numbers using flash as3 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744606811a2615404.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论