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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user