#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; // Define a global format rule for Double values uc.Format("Def: Result = Format('${:.2f}', double(Result))", uc.DataTypeOf("Double")); // FormatStyle.Default (or omitting the argument) applies the global rule cout << uc.EvalStr("50 * 1.25", FormatStyle::Default) << endl; // FormatStyle.None bypasses the global rule and returns the raw value cout << uc.EvalStr("50 * 1.25", FormatStyle::None) << endl; }