Percentage

Pure
Percentage

Returns Value as a percentage of Total. Returns 0 if Total is zero.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
ValuefloatValue parameter
TotalfloatTotal parameter

Outputs

NameTypeDescription
ReturnValuefloat 0-100ReturnValue output

Example Use Cases

Example 1

Display quest completion percentage.

Example 2

Show loading progress as a percent.