Comparing Data Types across Languages

 
 
 

The following table compares various data types across the various languages supported in Softimage. For more information about each data type you can click on the links in the Type column.

Type

VBScript

JScript

Python

siVariantType enum value

C#

C++

Description

Integer

--

--

--

siByte

sbyte (System.SByte)

signed char

1-byte signed integer

Byte

--

--

siUByte

byte (System.Byte)

unsigned char

1-byte unsigned integer

--

--

--

--

char (System.Char)

unsigned char

2-byte Unicode character

Integer

number

--

siInt2

short (System.Int16)

short

2-byte signed integer

--

--

--

siUInt2

ushort (System.UInt16)

unsigned short

2-byte unsigned integer

Long

Long

number

int

siInt4

int (System.Int32)

long

4-byte signed long integer

--

--

--

siUInt4

uint (System.UInt32)

unsigned int

4-byte unsigned integer

--

--

--

--

long (System.Int64)

__int64

8-byte signed integer

--

--

--

--

ulong (System.UInt64)

unsigned __int64

8-byte unsigned integer

Float

Single

number

float

siFloat

float (System.Single)

float

4-byte single floating-point number

Double

Double

number

--

siDouble

double (System.Double)

double

8-byte double floating-point number

String

String

String

string

siString

string (System.String)

XSI::CString

string

Boolean

Boolean

Boolean

(int)

siBool

bool (System.Boolean)

bool

Boolean

Variant

(Variant)

(Undefined)

(implicit conversion)

n/a

object (System.Object)

XSI::CValue

A union of data types with associated functions for creating, deleting, copying, accessing and manipulating.

--

Object

--

--

siDispatch

--

--

IDispatch interface pointer

Array

Array

(use VBArray instead of Array)

(list or tuple)

--

System.Array

XSI::CValueArray

SAFEARRAY or sequence of data

Tip

For high-level information about how these languages approach data type in general, see one of the following topics:

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License