- 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.
推薦閱讀
- Cortex-M3 + μC/OS-II嵌入式系統開發入門與應用
- Linux KVM虛擬化架構實戰指南
- Android NDK Game Development Cookbook
- 辦公通信設備維修
- 電腦組裝、維護、維修全能一本通(全彩版)
- 硬件產品經理手冊:手把手構建智能硬件產品
- 電腦維護365問
- The Deep Learning with Keras Workshop
- 微服務分布式架構基礎與實戰:基于Spring Boot + Spring Cloud
- Source SDK Game Development Essentials
- RISC-V處理器與片上系統設計:基于FPGA與云平臺的實驗教程
- 微服務實戰(Dubbox +Spring Boot+Docker)
- 計算機組成技術教程
- 基于S5PV210處理器的嵌入式開發完全攻略
- 從企業級開發到云原生微服務:Spring Boot實戰