.NET Customisation User Guide

.NET Customisation : Database Interface : Units : DbDouble
DbDouble d1 = DbDouble.Create(1.0);
DbDouble d1 = DbDouble.Create("1.0kg");
DbElement bran = DbElement.GetElement("/100-B-1-B1");
DbDouble hbor = bran.GetDbDouble(DbAttributeInstance.HBOR);
DbElement bran = DbElement.GetElement("/100-B-1-B1");
DbDouble hbor = DbDouble.Create("300", fbore)
bran.SetAttribute(DbAttributeInstance.HBOR, hbor);
DbDouble bore = DbDouble.CreateBore(300);
DbFormat fbore = DbFormat.Create();
fbore.Dimension = DbDoubleDimension.GetDimension(DbDimension.DIST);
fbore.Units = DbDoubleUnits.GetUnits(DbUnits.FINC);
DbDouble bore = DbDouble.CreateBore("12", fbore);
DbDouble d1 = DbDouble.Create("2m");
DbDoubleUnits u1 = d1.Units;
DbFormat ftemp = DbFormat.Create();
ftemp.Dimension = DbDoubleDimension.GetDimension(DbDimension.TEMP);
ftemp.Units = DbDoubleUnits.GetUnits("degRankine");
DbDouble t1 = DbDouble.Create("3 celsius");
String tempStr = t1.ToString(ftemp);
DbDouble d1 = DbDouble.Create("1kg");
DbDouble d2 = d1.ConvertUnits(DbDoubleUnits.GetUnits(DbUnits.LB));
d1 = DbDouble.Create("1 kg");
d2 = DbDouble.Create("2.2046 lb");

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo