VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › Verse Language · Up to Fortnite · Verse Language · 40 of 570 in Verse Language
Browse Fortnite

Float in Verse

Verse uses float as the type for storing and handling floating point numbers, such as 1.0, -50.5, and 3.14159.

A float in Verse is an IEEE 64-bit float, which means it can contain a positive or negative number that has a decimal point in the range [-2^1024 + 1, … , 0, … , 2^1024 - 1], or has the value NaN (Not a Number).

The implementation for float differs from the IEEE standard in the following ways:

  • There is only one NaN value.
  • NaN is equal to itself.
  • Every number is equal to itself. If two numbers are equal, then no pure Verse code can observe the difference between them.
  • 0 cannot be negative.

You can include predefined float values within your code as float literals. A float literal is a floating point number in your code.

The following is an example of how to create a float variable named MaxHealth, initialized with the float literal 100.0:

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated Mar 8, 2026
    Keep exploring
    More in Verse Language · 40 of 570
    Prev
    failure in verse
    Next
    for expression
    Browse all files in this folder (A–Z)
    Next up
    • Verse uses `float` as the [type
    • A float in Verse is an [IEEE 64-bit float
    • The implementation for float differs from the [IEEE standard
    • Standard Library
    • Persistable Type
    Related topics
    • Float In Verse Verse Language
    • Int In Verse Verse Language
    • Learn Code Basics 2 Basic Programming Components In Verse Scene Graph
    • Float Range Scene Graph
    • int Verse Language

    Related

    Open in graph →

    Linked docs

    • Verse Glossary

    Related topics

    • Float In Verse
    • Int In Verse
    • Learn Code Basics 2 Basic Programming Components In Verse
    • Float Range
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse