Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
  • Loading branch information
the-r3aper7 authored Mar 9, 2024
1 parent b3ec0e3 commit f8e4e95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var isInteger = require( '@stdlib/math/base/assert/is-integer' );
function cosd( x ) {
var xRad;

if (isInteger(((x / 90) + 1) / 2) || Infinity < x || -Infinity > x) {
if (isInteger(((x / 90) - 1) / 2) || Infinity < x || -Infinity > x) {
return 0;
}

Expand Down

0 comments on commit f8e4e95

Please sign in to comment.