PrecisionModel.fromType constructor
PrecisionModel.fromType(
- Type modelType
Creates a PrecisionModel
that specifies
an explicit precision model type.
If the model type is FIXED the scale factor will default to 1.
@param modelType the type of the precision model
Implementation
PrecisionModel.fromType(Type modelType) {
this.modelType = modelType;
if (modelType == FIXED) {
setScale(1.0);
}
}