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 Class

Extensions related to percentages of numbers.

public static class Percent

Inheritance System.Object 🡒 Percent

Methods  
ToDecimal(float) Converts the percentage into its decimal value.
ToDecimal(float, uint) Converts the percentage into a string with control of the precision.
ToPercent(float) Converts the number into its percentage value.
ToPercent(float, uint) Converts the number into a string with control of the precision.