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

Number Multiplier To Percent Method

2183 Views

Report

  • |  |  |
    | --- | --- |
    |  | # Converts a float multiplier to a percentage string. Author: VukeFN |
    |  | # Example: 1.5 → "+50%", 2.0 → "+100%", 0.5 → "-50%" |
    |  | ToPercentString<public>(Multiplier:float):string= |
    |  | if(Percentage := Floor[(Multiplier - 1.0) * 100.0]): |
    |  | if(Percentage >= 0): |
    |  | "+{Percentage}%" |
    |  | else: |
    |  | "{Percentage}%" |
    |  | else: |
    |  | "+0%" |
    

    Converts a float multiplier to a percentage string. Author: VukeFN

    Example: 1.5 → "+50%", 2.0 → "+100%", 0.5 → "-50%"

    ToPercentString<public>(Multiplier:float):string= if(Percentage := Floor[(Multiplier - 1.0) * 100.0]): if(Percentage >= 0): "+{Percentage}%" else: "{Percentage}%" else: "+0%"

    Copy full snippet(10 lines long)

Categories:

  • Verse

Purpose:

  • Building Block

Recent tutorials

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 documentation

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

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 · 92 of 114
Prev
fortnite real time api beta
Next
fortnite fixed sized generic queue implementation w circular option

Source

Epic Games documentation

View original

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