Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 91cf80a

Browse files
committed
Merge pull request #43 from codisart/correction-cosec-sec-methodes
[TECH] Use the decimalconstants::one() instead of decimal::frominteger().
2 parents 7932069 + f9a554b commit 91cf80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Decimal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ public function cosec($scale = null)
729729
);
730730
}
731731

732-
return Decimal::fromInteger(1)->div($sin)->round($scale);
732+
return DecimalConstants::one()->div($sin)->round($scale);
733733
}
734734

735735
/**
@@ -775,7 +775,7 @@ public function sec($scale = null)
775775
);
776776
}
777777

778-
return Decimal::fromInteger(1)->div($cos)->round($scale);
778+
return DecimalConstants::one()->div($cos)->round($scale);
779779
}
780780

781781

0 commit comments

Comments
 (0)