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 · 91 of 570 in Verse Language
Browse Fortnite

Type Casting and Conversion

When working with data, it is often necessary to convert variables from one data type to another. For example, displaying the result of a calculation requires converting from a float to a string.

All type conversion within Verse is explicit, which means that you must use a function like ToString() or use an operator like multiply (*) to convert an object to a different data type. Explicit conversion of one type to another is also called type casting.

Converting Float to Int

Converting from a float to an int requires a function that explicitly specifies how it will convert from a floating point number to an integer. The following functions all handle the conversion, but they all work differently. It's up to you to decide which one works best in a given situation.

  • Round[]
  • Floor[]
  • Ceil[]
  • Int[]

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 Feb 10, 2026
    Keep exploring
    More in Verse Language · 91 of 570
    Prev
    type aliasing in verse
    Next
    type macro in verse
    Browse all files in this folder (A–Z)
    Next up
    • When working with data, it is often necessary to convert variables from one data [type
    • Float In Verse
    • String In Verse
    • Converting Float to Int
    • Converting Float to Int
    • Floor 1
    Related topics
    • Type Casting And Conversion In Verse Verse Language
    • Common Types In Verse Verse Language
    • Working With Verse Types In Verse Verse Language
    • Type Aliasing In Verse Verse Language
    • Tagged Lights 3 Finding The Lights At Runtime With Gameplay Tags In Verse Materials/Vfx

    Related

    Open in graph →

    Linked docs

    • Verse Glossary
    • Float In Verse
    • String In Verse
    • Int In Verse

    Related topics

    • Type Casting And Conversion In Verse
    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