DPB1Class ยท Utilities and settings

MathEx

Provides math ex data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Common

public static class MathExView DPB2 version โ†’

Members and overloads

1 results
Show all members

GetPercentage

MethodLink โ†—
public static float MathEx.GetPercentage(float current, float max, bool isHundredHigh = true)

Returns percentage using the supplied arguments.

currentfloat
Specifies current.
maxfloat
Specifies max.
isHundredHighbool
Specifies is hundred high. Optional; the default is shown in the signature.

Returns: The float result.

DPB1 0.3.29.47 ยท Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.