Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created June 15, 2018 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/8655ad8a46628fba78dec78bb72369d0 to your computer and use it in GitHub Desktop.
Save todorok1/8655ad8a46628fba78dec78bb72369d0 to your computer and use it in GitHub Desktop.
無限大について全力で考えてみる
void Start(){
CheckOverFlow();
}
void CheckOverFlow(){
// 最大値を超えた時の動作を確認
float overMax = float.MaxValue + 1.0f;
Debug.Log("overMax : " + overMax);
// 最小値を下回った時の動作を確認
float underMin = float.MinValue - 1.0f;
Debug.Log("underMin : " + underMin);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment