Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

FloatMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents the floating point optimization mode for compilation.

Properties

Property Description
Default Use the default target floating point mode - FloatMode.Strict.
Strict No floating point optimizations are performed.
Deterministic Ensure that floating point calculations are deterministic (64-bit only).
Fast Allows algebraically equivalent optimizations (which can alter the results of calculations), it implies : optimizations can assume results and arguments contain no NaNs or +/- Infinity and treat sign of zero as insignificant. optimizations can use reciprocals - 1/x * y , instead of y/x. optimizations can use fused instructions, e.g. madd.