#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   // Define a format that only applies to Double data types.
   auto doubleType = uc.DataTypeOf("Double");
   auto fmt = uc.Format("Result = 'Value: ' + Result", doubleType);

   cout << uc.EvalStr("10 * 2.5") << endl;
   cout << uc.EvalStr("'Hello'") << endl; // String output is unaffected.

   // Clean up the format rule
   fmt.Release();
   cout << uc.EvalStr("10 * 2.5") << endl; // No longer formatted
}