- 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.
推薦閱讀
- 觸摸屏實用技術與工程應用
- 嵌入式系統設計教程
- 單片機原理及應用系統設計
- 分布式微服務架構:原理與實戰
- The Deep Learning with Keras Workshop
- 計算機組裝與維護(第3版)
- OpenGL Game Development By Example
- Building 3D Models with modo 701
- LPC1100系列處理器原理及應用
- Blender Game Engine:Beginner's Guide
- Hands-On Deep Learning for Images with TensorFlow
- Corona SDK Mobile Game Development:Beginner's Guide
- 電腦主板維修技術
- 現代多媒體技術及應用
- ActionScript Graphing Cookbook