| 389 | return (float)oper1 / (float)oper2; |
| 390 | } |
| 391 | static GameValue Zbytek(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 392 | { |
| 393 | if ((float)oper2 == 0) |
| 394 | { |
| 395 | state->SetError(EvalDivZero); |
| 396 | return 0.0f; |
| 397 | } |
| 398 | return (float)fmod((float)oper1, (float)oper2); |
| 399 | } |
| 400 | static GameValue Na(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 401 | { |
| 402 | return (float)pow((float)oper1, (float)oper2); |