Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
floatの計算には誤差がつきもの
float a = 0.1f;
float b = 0.2f;
if (a + b == 0.3f)
{
// ここにたどり着けない……。
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment