Joel
08/12/2020, 3:42 PMBigDecimal
correctly but it appears that Exposed is rounding the precision to that of the original column.fun <T: BigDecimal?> ExpressionWithColumnType<T>.alterScale(additional: Int): ExpressionWithColumnType<T> {
val columnType = (columnType as DecimalColumnType)
return castTo(DecimalColumnType(columnType.precision + additional, columnType.scale + additional))
}
tapac
08/16/2020, 7:29 PMwithScale
on DivideOp function. Will be avalilable on the next release. You could check test how to use it.Joel
08/16/2020, 8:14 PM