DecimalType(Int32, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes the DecimalType instance.
public DecimalType (int precision = 10, int scale = 0);
new Microsoft.Spark.Sql.Types.DecimalType : int * int -> Microsoft.Spark.Sql.Types.DecimalType
Public Sub New (Optional precision As Integer = 10, Optional scale As Integer = 0)
Parameters
- precision
- Int32
Number of digits in a number
- scale
- Int32
Number of digits to the right of the decimal point in a number
Remarks
Default values of precision and scale are from Scala: sql/catalyst/src/main/scala/org/apache/spark/sql/types/DecimalType.scala.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for