16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 19:29:19 +02:00

Poprawione obliczanie zmiennych zmiennoprzecinkowych

This commit is contained in:
firleju
2017-01-07 21:54:30 +01:00
parent 95f8bd3c27
commit 64ae28decc
4 changed files with 119 additions and 125 deletions

View File

@@ -73,15 +73,6 @@ double Min0R(double x1, double x2)
return x2;
}
int Sign(double x)
{
if (x > 0)
return 1;
else if (x < 0)
return -1;
return 0;
}
bool TestFlag(int Flag, int Value)
{
if ((Flag & Value) == Value)