I have a double variable defined like this:
Variable<double> myValue = 100;
Now I want to print the value on the command-line, but I can't find a way how to do it.
I tried to just print it, but nothing was printed:
Console.WriteLine("Value: {0:f2}", myValue);
Here is the full example code:
using System;
using Microsoft.ML.Probabilistic.Models;
namespace TestApp
{
class Program
{
static void Main(string[] args)
{
Variable<double> myValue = 100;
Console.WriteLine("Value: {0:f2}", myValue);
}
}
}