Example #1
0
    /****   Approximate Numerics   ****/
    public static SqlType Float(int numberOfBits = 53)
    {
        if (numberOfBits is < 1 or > 53)
        {
            throw new ArgumentException("Mantissa must be between 1 and 53 inclusive", nameof(numberOfBits));
        }

        return(SqlType.ApproximateNumeric("float", numberOfBits));
    }
Example #2
0
 public static SqlType Real()
 {
     return(SqlType.ApproximateNumeric("real", 24));
 }