Groophy.Math.Exponent(new GValue("5"), new GValue("3"));
-> 125
Groophy.Math.Power(new GValue("5"), new GValue("3"));
-> 125
Groophy.Math.Caret(new GValue("5"), new GValue("3"));
-> 125
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /// <summary> /// https://groophy-inc.github.io/Exponent /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static GValue Exponent(GValue from, GValue to) { return new GValue((Math.Power(from, to)).ToString()); } /// <summary> /// https://groophy-inc.github.io/Exponent /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static GValue Power(GValue from, GValue to) { return new GValue((Math.Power(from, to)).ToString()); } /// <summary> /// https://groophy-inc.github.io/Exponent /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static GValue Caret(GValue from, GValue to) { return new GValue((Math.Power(from, to)).ToString()); } |
Copyright © Groophy.Inc ' Batch-Man