using UnityEngine;

using System.Collections;


public class Chap3 : MonoBehaviour {


// Use this for initialization

void Start () {

PrintTableData();

PrintSystemTableData();

}

// Update is called once per frame

void Update () {

}

void PrintSystemTableData(){

Debug.Log("System.Sbyte Min = "+ System.SByte.MinValue + "  Max = " + System.SByte.MaxValue);

Debug.Log("System.Byte Min = "+ System.Byte.MinValue + "  Max = " + System.Byte.MaxValue);

Debug.Log("System.Int16 Min = "+ System.Int16.MinValue + " Max = " + System.Int16.MaxValue);

Debug.Log("System.UInt16 Min = "+ System.UInt16.MinValue + "  Max = " + System.UInt16.MaxValue);

Debug.Log("System.int32 Min = "+ System.Int32.MinValue + "  Max = " + System.Int32.MaxValue);

Debug.Log("System.UInt32 Min = "+ System.UInt32.MinValue + "  Max = " + System.UInt32.MaxValue);

Debug.Log("System.Int64 Min = "+ System.Int64.MinValue + " Max = " + System.Int64.MaxValue);

Debug.Log("System.UInt64 Min = "+ System.UInt64.MinValue + "  Max = " + System.UInt64.MaxValue);

}

void PrintTableData(){

Debug.Log("sbyte Min = "+ sbyte.MinValue + " sbyte Max = " + sbyte.MaxValue);

Debug.Log ("byte Min = " + byte.MinValue + " byte Max = " + byte.MaxValue);

Debug.Log("short Min = "+ short.MinValue + " short Max = " + short.MaxValue);

Debug.Log("ushort Min = " + ushort.MinValue + " ushort Max = " + ushort.MaxValue);

Debug.Log("int Min = "+ int.MinValue + " int Max = " + int.MaxValue);

Debug.Log("usint Min = " + uint.MinValue + " uint Max = " + uint.MaxValue);

Debug.Log ("long Min = " + long.MinValue + " long Max = " + ulong.MaxValue);

Debug.Log("ulong Min = " + ulong.MinValue + " ulong max = " + ulong.MaxValue);

}

void PrintTableData2(){

Debug.Log("float Min = " + float.MinValue + ", Max = " + float.MaxValue);

Debug.Log ("double Min = " + double.MaxValue + ", Max = " + double.MaxValue);

Debug.Log ("decimial Min = " + decimal.MaxValue + ",Max = " + decimal.MaxValue);

}

}




+ Recent posts