/// <summary>
        /// Creates an IFCData object as IfcCountMeasure.
        /// </summary>
        /// <param name="value">The integer value.</param>
        /// <returns>The IFCData object.</returns>
        public static IFCData CreateAsCountMeasure(double value)
        {
            int valueAsInt = Convert.ToInt32(value);

            if (MathUtil.IsAlmostZero(value - valueAsInt))
            {
                return(IFCData.CreateIntegerOfType(valueAsInt, "IfcCountMeasure"));
            }
            else
            {
                return(CreateAsMeasure(value, "IfcCountMeasure"));
            }
        }
 /// <summary>
 /// Creates an IFCData object as IfcInteger.
 /// </summary>
 /// <param name="value">The integer value.</param>
 /// <returns>The IFCData object.</returns>
 public static IFCData CreateAsInteger(int value)
 {
     return(IFCData.CreateIntegerOfType(value, "IfcInteger"));
 }