By default, the scale for a DECIMAL type is 0, which means the DECIMAL data type mimics an integer type.
默认情况下,decimal类型的刻度为0,这意味着DECIMAL数据类型模拟了整数类型。
We need to be accurate to two decimal places (e.g. in a simple accounting package), scale everything up by 100, and convert it back to floating point as late as possible.
我们处理小数的时候要精心些,比方说我们在做一个简单的统计程序时,要限制结果不能超过100,要尽可能晚的把它转化成浮点数。
Scale sets the number of digits to the right of the decimal.
Scale设置小数点右侧的位数。
The price column is created as a DECIMAL data type with a precision of 5 and a scale of 2.
price列创建为DECIMAL数据类型,精度为5,刻度为2。
Internally, BigDecimal is represented as an arbitrary-precision unscaled value and a scale factor, which represents how many places to move the decimal point left to obtain the scaled value.
在内部,可以用任意精度任何范围的值和一个换算因子来表示BigDecimal,换算因子表示左移小数点多少位,从而得到所期望范围内的值。
The BONUS column is data type DECIMAL (9 length , 2 scale).
BONUS列的数据类型为DECIMAL(长度为9,小数点后位数为2)。
The SALARY column is data type DECIMAL (9 length, 2 scale).
salary列的数据类型为DECIMAL(长度为9,小数点后位数为2)。
To create a decimal type, you specify the precision and, optionally, the scale for the data to be stored.
要创建算术类型,应当指定保存的数据的精度,并可选地指定数据的刻度。
One takes a double-precision floating point as input, another takes an integer and a scale factor, and another takes a String representation of a decimal number.
其中一个构造函数以双精度浮点数作为输入,另一个以整数和换算因子作为输入,还有一个以小数的String表示作为输入。
This paper gives a parallel algorithm for conversion between decimal number and other scale number. It also analyzes the performance of the algorithm.
本文给出了十进制与其它进制之间相互转换的并行算法,并对算法的性能进行了分析。
Theorem about reciprocal transformation be-tween decimal numerals and mixed scale numerals is discussed in detail and the rigorous proof about this th…
因此,给出了十进制数与混合进制数之间的相互转化定理及其严密的理论证明,旨在应用定理中简单的公式来代替以往复杂的转化算法。
This paper gives a parallel algorithm for conversion between decimal number and other scale nu...
本文给出了十进制与其它进制之间相互转换的并行算法,并对算法的性能进行了分析。
The scale of a numeric data type is the number of digits to the right of the decimal point.
数值数据类型的小数位数是小数点右侧的位数。
This is because TBCDField uses the currency data type that has a fixed scale of 4 decimal places.
BCD字段类型使用了货币类型,这种类型是小数点后是4位数。
This is because TBCDField uses the currency data type that has a fixed scale of 4 decimal places.
BCD字段类型使用了货币类型,这种类型是小数点后是4位数。
应用推荐