DPB2Class · 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 MathEx
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

GetPercentage

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

Calls GetPercentage on MathEx with current, max, isHundredHigh and returns float. Open the return contract below before using the result.

Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

current
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies current.

max
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies max.

isHundredHigh
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies is hundred high. Optional; the default is shown in the signature.

Returns: The float result.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.