バージョン

ToDouble() メソッド

このクラスインスタンスの値を Double データ型に変換します。
シンタックス
'宣言
 
Public Overloads Function ToDouble() As Double
public double ToDouble()
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports Infragistics.Win.CalcEngine
Imports Infragistics.Win.UltraWinCalcManager

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        Dim formula As String = "average( 10, 15, 20 )"
        Dim result As UltraCalcValue = Me.UltraCalcManager1.Calculate(formula)
        If result.IsError Then
            MessageBox.Show(Me, result.ToString())
        Else
            Dim doubleVal As Double = result.ToDouble()
            MessageBox.Show(Me, doubleVal.ToString())
        End If
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;
using Infragistics.Win.CalcEngine;
using Infragistics.Win.UltraWinCalcManager;

		private void button1_Click(object sender, System.EventArgs e)
		{
			string formula = "average( 10, 15, 20 )";
			UltraCalcValue result = this.ultraCalcManager1.Calculate( formula );
			if ( result.IsError )
			{
				MessageBox.Show( this, result.ToString( ) );
			}
			else
			{
				double doubleVal = result.ToDouble( );
				MessageBox.Show( this, doubleVal.ToString( ) );
			}
		}
参照