Period

Groophy.Math.Period(new GValue("5"), new GValue("2"));
-> 7/100 || 0,07

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
        /// <summary>
        /// https://groophy-inc.github.io/period
        /// </summary>
        /// <param name="from"></param>
        /// <param name="to"></param>
        /// <returns></returns>
        public static GValue Period(GValue from, GValue to)
        {
            return new GValue(((from.get_Decimal + to.get_Decimal) / 100).ToString());
        }

Contact Us

Copyright © Groophy.Inc ' Batch-Man