VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Verse Language·Up to Community Snippets · Verse Language·97 of 114 in Verse Language

Rounding A Number

7891 Views

Report

  • # Rounding to the nearest integer 
    if (number := Round[1.4]):
        Print("{number}") # 1
    
    # Rounding up
    if (number := Ceil[1.4]): 
        Print("{number}") # 2
    
    # Rounding down
    if (number := Floor[1.4]):
        Print("{number}") # 1
    

    Rounding to the nearest integer

    if (number := Round[1.4]): Print("{number}") # 1

    Rounding up

    if (number := Ceil[1.4]): Print("{number}") # 2

    Rounding down

    if (number := Floor[1.4]): Print("{number}") # 1

    Expand code Copy full snippet(11 lines long)

https://discord.gg/verse-scripting

Categories:

  • Verse

Purpose:

  • Learning Example

Recent tutorials

View all

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 97 of 114
Prev
fortnite singleton in verse
Next
fortnite project wide logger

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:59:37.605026+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

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