public static SqlExpression DecimalRoundWithMode(
     [Type(typeof(decimal))] SqlExpression d,
     [Type(typeof(int))] SqlExpression decimals,
     [Type(typeof(MidpointRounding))] SqlExpression mode)
 {
     return(MathCompilers.MathRoundDecimalWithMode(d, decimals, mode));
 }
 public static SqlExpression SByteCompareTo(SqlExpression _this,
                                            [Type(typeof(sbyte))] SqlExpression value)
 {
     return(MathCompilers.GenericSign(_this - value));
 }
 public static SqlExpression DecimalCompareTo(SqlExpression _this,
                                              [Type(typeof(decimal))] SqlExpression value)
 {
     return(MathCompilers.GenericSign(_this - value));
 }
 public static SqlExpression ULongCompareTo(SqlExpression _this,
                                            [Type(typeof(ulong))] SqlExpression value)
 {
     return(MathCompilers.GenericSign(_this - value));
 }
 public static SqlExpression DecimalRound(
     [Type(typeof(decimal))] SqlExpression d)
 {
     return(MathCompilers.MathRoundDecimal(d));
 }
 public static SqlExpression DecimalFloor(
     [Type(typeof(decimal))] SqlExpression d)
 {
     return(MathCompilers.MathFloorDecimal(d));
 }
 public static SqlExpression DecimalCeiling(
     [Type(typeof(decimal))] SqlExpression d)
 {
     return(MathCompilers.MathCeilingDecimal(d));
 }
 public static SqlExpression DecimalTruncate(
     [Type(typeof(decimal))] SqlExpression d)
 {
     return(MathCompilers.MathTruncateDecimal(d));
 }