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·70 of 114 in Verse Language

Rounding Floats To Specific Decimals

3440 Views

Report

  • |  |  |
    | --- | --- |
    |  | approximateFloat(Value : float , decimalplace : float): float = |
    |  | factor := Pow(10.0,decimalplace) |
    |  | if(Rounded := Int[Value*factor]*1.0/factor): |
    |  | return Rounded |
    |  | else: |
    |  | return 0.0 |
    

    approximateFloat(Value : float , decimalplace : float): float = factor := Pow(10.0,decimalplace) if(Rounded := Int[Value*factor]*1.0/factor): return Rounded else: return 0.0

    Copy full snippet(6 lines long)

Categories:

  • Verse

Purpose:

  • Tool and Pipeline

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 · 70 of 114
Prev
fortnite quick simple script bring back spectators
Next
fortnite throw an error

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:57:52.334347+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