This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
developmentRegion = en; | |
hasScannedForEncodings = 1; | |
knownRegions = ( | |
English, | |
French, | |
German, | |
en, | |
ja, | |
"ja-JP", | |
Base, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
developmentRegion = English; | |
hasScannedForEncodings = 1; | |
knownRegions = ( | |
English, | |
French, | |
German, | |
en, | |
ja, | |
"ja-JP", | |
Base, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Localized versions of Info.plist keys */ | |
CFBundleDisplayName = "ローカライズ後のアプリ名"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections; | |
/// <Summary> | |
/// 浮動小数点数をビット列で表示します。 | |
/// </Summary> | |
public class FloatBit : MonoBehaviour | |
{ | |
void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
足した値 1 と目標の値 1 は 同じです。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <Summary> | |
/// 数値を足す場合と目標となる数値そのものを近似的に比較した場合で同じになるか確認するメソッドです。 | |
/// 値はメソッド内で直接指定します。 | |
/// </Summary> | |
void CompareAddedValueToTargetApproximately() | |
{ | |
// 値を変数にセットします。 | |
float valueA = 0.1f; | |
// 値を10回足します。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
足した値 1 と目標の値 1 は 異なっています。 | |
足した値 1.00000012 | |
ビット列 : 00111111100000000000000000000001 | |
目標の値 1 | |
ビット列 : 00111111100000000000000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float valueA = 0.1f; | |
float added = 0; | |
for (int i = 1; i <= 10; i++) | |
{ | |
added += valueA; | |
} | |
float targetValue = 1.0f; | |
if (added == targetValue) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float a = 0.1f; | |
float b = 0.2f; | |
if (a + b == 0.3f) | |
{ | |
// ここにたどり着けない……。 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <Summary> | |
/// typeparamタグを使うとメソッドの型パラメータの説明を表示してくれます。 | |
/// </Summary> | |
/// <typeparam name="T">型パラメータの説明がここに表示されます。</typeparam> | |
T[] TypeparamMethod<T>() | |
{ | |
// 指定された型で大きさが5の配列を返します。 | |
return new T[5]; | |
} |