We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
float
int
getPrayTime()
When using $arabic->getPrayTime(), I got this warning.
$arabic->getPrayTime()
I think this is because these 3 lines:
$g = $g % 360 + ($g - ceil($g) + 1); $q = $q % 360 + ($q - ceil($q) + 1); $L = $L % 360 + ($L - ceil($L) + 1);
As php documentation says "Operands of modulo are converted to int before processing. For floating-point modulo, see fmod()" Arithmetic Operators
fmod()
We can use fmod() function fmod
$g = fmod($g, 360) + ($g - ceil($g) + 1); $q = fmod($q, 360) + ($q - ceil($q) + 1); $L = fmod($L, 360) + ($L - ceil($L) + 1);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using
$arabic->getPrayTime()
, I got this warning.I think this is because these 3 lines:
As php documentation says "Operands of modulo are converted to int before processing. For floating-point modulo, see
fmod()
"Arithmetic Operators
We can use
fmod()
functionfmod
The text was updated successfully, but these errors were encountered: