BuiltInTypesEnumEnum

Applies to:Fast Math Parser
Data types that come with uCalc
Remarks
These are built-in data types that come with uCalc
Members
Type_Unspecified
Type_Auto
Type_Boolean (SetVar(Boolean, Boolean-1); Boolean+1)
Type_Integer_8 Int8 +++ Rename these to things like Type_Int8
Type_Integer_8u Byte
Type_Integer_16 Int16
Type_Integer_16u Int16u
Type_Integer_32 Int32
Type_Integer_32u Int32u
Type_Integer_64 Int64
Type_Integer_64u Int64u
Type_Integer_128 Int128
Type_Integer_128u Int128u
Type_Float_Single Single
Type_Float_Double Double
Type_Float_Extended Extended
Type_Size_t
Type_Complex
Type_Decimal
Type_BigNum
Type_Date
Type_String
Type_String_LPCSTR LPCSTR
Type_String_Fixed FixedStr
Type_String_Wide WideStr
Type_List_Stack StackList
Type_List_Table TableList
Type_List_Sorted SortedList
Type_Null
Type_Void
Type_Any
Type_Pointer
Type_Omni
Type_UserDefined
Type_DataType
Type_Namespace
Type_IntPtr
Type_ADDR
Type_uCalcPtr
Type_Item
Type_ParsedExpr
Type_uCalcCallback
Type_Object
Type_Intrinsic
Example 1: Displaying formatted data from string input

Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_8u).ToString("-1")) ' Returns 255
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_16u).ToString("-1")) ' Returns 65535
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Boolean).ToString("-1")) ' Returns "false"
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Complex).ToString("-1")) ' Returns "0+1i"
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_String).ToString("-1")) ' Returns "-1"

          

Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_8u).ToString("-1")); // Returns 255;
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_16u).ToString("-1")); // Returns 65535;
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Boolean).ToString("-1")); // Returns "false";
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Complex).ToString("-1")); // Returns "0+1i";
Console.WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_String).ToString("-1")); // Returns "-1";

          

      WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_8u).ToString('-1')); // Returns 255;
      WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Integer_16u).ToString('-1')); // Returns 65535;
      WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Boolean).ToString('-1')); // Returns 'false';
      WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_Complex).ToString('-1')); // Returns '0+1i';
      WriteLn(uc.DataTypeOfIndex(BuiltInTypesEnum.Type_String).ToString('-1')); // Returns '-1';

          

cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_8u).ToString("-1") << endl; // Returns 255;
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_16u).ToString("-1") << endl; // Returns 65535;
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Boolean).ToString("-1") << endl; // Returns "false";
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Complex).ToString("-1") << endl; // Returns "0+1i";
cout << uc.DataTypeOfIndex(BuiltInTypesEnum::Type_String).ToString("-1") << endl; // Returns "-1";

          

Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_8u).ToString("-1")); // Returns 255;
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Integer_16u).ToString("-1")); // Returns 65535;
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Boolean).ToString("-1")); // Returns "false";
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_Complex).ToString("-1")); // Returns "0+1i";
Console::WriteLine(uc.DataTypeOfIndex(BuiltInTypesEnum::Type_String).ToString("-1")); // Returns "-1";

          
See also
Prev | Next