Пример #1
0
        /// <summary>
        /// Converts a double into a string using a unique formatting provided by the OLAP server.
        /// </summary>
        /// <param name="number">The number to convert.</param>
        /// <returns>A string containing the converted number. If an error occured the string is empty.</returns>
        public static string ConvertDoubleToString(double number)
        {
            string result = string.Empty;

            if (NativeOlapApi.ConvertDoubleToString(out result, number) == (int)ClientSupportErrorCodes.ECI_OK)
            {
                return(result);
            }
            return(string.Empty);
        }