기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Studio

Open Unity Studio

Unity Studio

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Studio
  • What's new in Unity Studio
  • Introduction to Unity Studio
  • Launch Unity Studio
  • Create your first Unity Studio project
  • Develop with Unity Studio
    • The Unity Studio interface
    • Save your progress
    • GameObjects
    • Assets
    • Materials
    • Scene settings
    • Logic
      • Introduction to Logic
      • Create a Logic script
      • The Logic Editor interface
      • Methods, variables, and parameters
      • Nodes
        • Event Listener nodes
        • Event nodes
        • Action nodes
        • Constant nodes
        • Flow Control nodes
        • Operator nodes
        • Utility nodes
          • Math node
          • Quaternion node
          • Vector2 node
          • Vector3 node
          • Vector4 node
          • Float node
          • Int node
          • Physics node
          • Input node
          • Time node
          • Random node
          • Cursor node
          • Debug node
          • Convert node
      • Logic examples
    • The UI Creator
    • Animation
    • AI features
  • Collaborate in Unity Studio
  • Export drafts to the Unity Editor
  • Publish and share
  • Troubleshooting Unity Studio issues
  • Report bugs and share feedback
  • Manage your analytics and marketing preferences
  1. Unity Studio
  2. Develop with Unity Studio
  3. Logic
  4. Nodes
  5. Utility nodes

Float node

Use the Float node to access preset float variables and common methods for decimal numbers.
읽는 시간 3분
최근 업데이트: 6달 전

The Float node creates a preset float value which you can use to compare or set values in your logic. A float is a number that can have decimal places, for example, 3.14 or −0.5.

Variables

Expand the node to view available variables you can use with the Float node:

Variable

Type

Description

Epsilon
float
The smallest positive float value greater than zero. Use to set another variable to this value or compare floating-point numbers for equality.
MinValue
float
The smallest possible float value, which is approximately −3.402823e38. Use to initialize or set variables to the lowest possible value or for comparisons.
MaxValue
float
The largest possible float value, which is approximately 3.402823e38. Use to initialize or set variables to the highest possible value or for comparisons.
NaN
float
Represents a value that's not a number. Use to check if a variable is undefined or for unrepresentable mathematical operations, such as dividing zero by zero.
NegativeInfinity
float
Represents negative infinity. Use to check if a variable is negative infinity, which can be the result of mathematical operations that overflow in the negative direction, such as dividing a negative number by zero.
PositiveInfinity
float
Represents positive infinity. Use to check if a variable is positive infinity, which can be the result of mathematical operations that overflow in the positive direction, such as dividing a positive number by zero.

Methods

Expand the node to view available methods you can use with the Float node:

Method

Return type

Description

Is Finite
bool
Returns true if a variable is a finite number (not NaN, PositiveInfinity, or NegativeInfinity). Use to validate input or results of calculations.
Is Infinity
bool
Returns true if a variable is either positive infinity or negative infinity. Use to validate input or results of calculations.
Is Not a Number
bool
Returns true if a variable isn't a number (NaN). Use to check if a variable isn't a number or if a calculation resulted in an undefined value.
Is Negative Infinity
bool
Returns true if a variable is NegativeInfinity.
Is Negative
bool
Returns true if a variable is less than zero. Use to check for negative values.
Is Normal
bool
Returns true if a variable is a normal number (not zero, subnormal, infinity, or NaN). Use to check if a variable is a normal number.
Is Positive Infinity
bool
Returns true if a variable is PositiveInfinity.
Is Subnormal
bool
Returns true if a variable is a tiny number that's represented with less precision than normal numbers.
Parse
float
Converts a string representation of a number to its float equivalent. Use to convert user input or data from text sources into a float value. Throws an exception if the string isn't a valid number.
Try Parse
bool
Tries to convert a string representation of a number to its float equivalent and returns a Boolean that indicates whether the conversion was successful. Use to safely handle user input or data from text sources with no thrown exceptions from invalid formats.

Additional resources

  • Utility nodes

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Variables

    • Methods

    • Additional resources


이 페이지의 문제 보고