Formatting a calculated result using the FormatStyle Enum

ID: 1472

See: EvalStr
				
					using uCalcSoftware;

var uc = new uCalc();
// Evaluate an expression and format it as Scientific notation with 4 digits of precision
var result = uc.EvalStr("10000 / 3", FormatStyle.Scientific, 4);
Console.WriteLine(result);
				
			
3.3333e+03
				
					#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   // Evaluate an expression and format it as Scientific notation with 4 digits of precision
   auto result = uc.EvalStr("10000 / 3", FormatStyle::Scientific, 4);
   cout << result << endl;
}
				
			
3.3333e+03
				
					Imports System
Imports uCalcSoftware
Public Module Program
   Public Sub Main()
      Dim uc As New uCalc()
      '// Evaluate an expression and format it as Scientific notation with 4 digits of precision
      Dim result = uc.EvalStr("10000 / 3", FormatStyle.Scientific, 4)
      Console.WriteLine(result)
   End Sub
End Module
				
			
3.3333e+03