- Unreal Development Kit Game Programming with UnrealScript:Beginner's Guide
- Rachel Cordone
- 105字
- 2021-08-27 11:59:08
Common operators
Beyond simple arithmetic there are many ways of dealing with our variables, each with its own syntax and effects on the different variable types. Let's discuss some of the most commonly used operators and variable functions.
Standard arithmetic
Addition ( +
), subtraction ( -
), multiplication ( *
), and division ( /
) work on all of the variable types we discussed, but have different effects on them. For floats and ints they work as we'd expect, but with multiplication and division, keep in mind the truncating that happens when working with ints.
It's also possible to use floats and ints together.
推薦閱讀
- Windows phone 7.5 application development with F#
- 硬件產品經理手冊:手把手構建智能硬件產品
- 3ds Max Speed Modeling for 3D Artists
- 計算機組裝與維修技術
- BeagleBone Robotic Projects
- 基于Proteus仿真的51單片機應用
- Source SDK Game Development Essentials
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- Intel Edison智能硬件開發指南:基于Yocto Project
- 數字媒體專業英語(第2版)
- Managing Data and Media in Microsoft Silverlight 4:A mashup of chapters from Packt's bestselling Silverlight books
- 筆記本電腦的結構、原理與維修
- The Machine Learning Workshop
- 筆記本電腦現場維修實錄
- DevOps實戰:VMware管理員運維方法、工具及最佳實踐