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);
}
}
'Computer Language > 유니티' 카테고리의 다른 글
실수를 많이 해서 실수형. (0) | 2014.03.31 |
---|---|
자료형(실수) (0) | 2014.03.31 |
왼쪽 오른쪽 이동 그리고 정지 (0) | 2014.03.31 |
탱크 이동 (0) | 2014.03.28 |
고스톱 만들기(두 좌표의 차이를 이용하여 이동) (0) | 2014.03.28 |