Example #1
0
        /// <inheritdoc cref="GetFloat(string,float)"/>
        public float GetFloat(HoconPath path, float @default = 0)
        {
            HoconValue value = GetNode(path);

            if (ReferenceEquals(value, HoconValue.Undefined))
            {
                return(@default);
            }

            return(value.GetFloat());
        }