RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.MathHelpers.Percent

Percent.ToDecimal(float) Method

Converts the percentage into its decimal value.

public static float ToDecimal(this float percentage);

Parameters

percentage System.Single
Percentage to convert from

Returns

System.Single
Converted decimal value