Example #1
0
 public static SDateTime DateTimeAddSeconds(SDateTime d, SNumber n)
 {
     return(new SDateTime(d.Value.AddSeconds(n.Value)));
 }
Example #2
0
 public static SString StringListGetByIndex(SStringList sl, SNumber index)
 {
     return(new SString(sl.Value[(int)index.Value - 1]));
 }
Example #3
0
 public static SDateTime DateTimeAddMonths(SDateTime d, SNumber n)
 {
     return(new SDateTime(d.Value.AddMonths((int)n.Value)));
 }
Example #4
0
 public static SBool NumberListDoesNotContainNumber(SNumberList nl, SNumber n)
 {
     return(new SBool(!nl.Value.Contains(n.Value)));
 }
Example #5
0
 public static SNumber NumberListGetByIndex(SNumberList nl, SNumber index)
 {
     return(new SNumber(nl.Value[(int)index.Value - 1]));
 }
Example #6
0
 public static SNumber NumberAbsolute(SNumber n)
 {
     return(new SNumber(Math.Abs(n.Value)));
 }
Example #7
0
 public static SNumber NumberRound(SNumber n, SNumber digits)
 {
     return(new SNumber(Math.Round(n.Value, (int)digits.Value)));
 }
Example #8
0
 public static SNumber NumberMultipliedByNumber(SNumber n1, SNumber n2)
 {
     return(new SNumber(n1.Value * n2.Value));
 }
Example #9
0
 public static SNumber NumberDividedByNumber(SNumber n1, SNumber n2)
 {
     return(new SNumber(n1.Value / n2.Value));
 }
Example #10
0
 public static SNumber NumberAddNumber(SNumber n1, SNumber n2)
 {
     return(new SNumber(n1.Value + n2.Value));
 }
Example #11
0
 public static SNumber NumberMinusNumber(SNumber n1, SNumber n2)
 {
     return(new SNumber(n1.Value - n2.Value));
 }
Example #12
0
 public static SBool NumberIsBetweenNumbers(SNumber d, SNumber min, SNumber max)
 {
     return(new SBool(d.Value >= min.Value && d.Value <= max.Value));
 }
Example #13
0
 public static SBool NumberIsLessThenOrEqualToNumber(SNumber n1, SNumber n2)
 {
     return(new SBool(n1.Value <= n2.Value));
 }
Example #14
0
 public static SBool NumberIsLessThenNumber(SNumber n1, SNumber n2)
 {
     return(new SBool(n1.Value < n2.Value));
 }
Example #15
0
 public static SBool NumberIsGreaterThenOrEqualToNumber(SNumber n1, SNumber n2)
 {
     return(new SBool(n1.Value >= n2.Value));
 }
Example #16
0
 public static SBool NumberIsNotEqualToNumber(SNumber n1, SNumber n2)
 {
     return(new SBool(n1.Value != n2.Value));
 }