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.ToPercent(float) Method

Converts the number into its percentage value.

public static float ToPercent(this float number);

Parameters

number System.Single
Number to convert from

Returns

System.Single
Converted percentage value