mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-12 21:35:13 +00:00
Patch _ARCSEC and _ARCCSC
As per the forum posts here: https://qb64phoenix.com/forum/showthread.php?tid=2125
This commit is contained in:
parent
3ea8457599
commit
3cf12d4222
|
@ -33924,7 +33924,7 @@ double func_pi(double multiplier, int32 passed) {
|
||||||
|
|
||||||
double func_arcsec(double num) {
|
double func_arcsec(double num) {
|
||||||
int sign = (num > 0) - (num < 0);
|
int sign = (num > 0) - (num < 0);
|
||||||
if (num < -1 || num > 1) {
|
if (std::abs(num) < 1) {
|
||||||
error(5);
|
error(5);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -33933,7 +33933,7 @@ double func_arcsec(double num) {
|
||||||
|
|
||||||
double func_arccsc(double num) {
|
double func_arccsc(double num) {
|
||||||
int sign = (num > 0) - (num < 0);
|
int sign = (num > 0) - (num < 0);
|
||||||
if (num < -1 || num > 1) {
|
if (std::abs(num) < 1) {
|
||||||
error(5);
|
error(5);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue