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

Commit

Permalink
Merge pull request #43 from codisart/correction-cosec-sec-methodes
Browse files Browse the repository at this point in the history
[TECH] Use the decimalconstants::one() instead of decimal::frominteger().
  • Loading branch information
castarco committed Oct 12, 2015
2 parents 7932069 + f9a554b commit 91cf80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Decimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ public function cosec($scale = null)
);
}

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

/**
Expand Down Expand Up @@ -775,7 +775,7 @@ public function sec($scale = null)
);
}

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


Expand Down

0 comments on commit 91cf80a

Please sign in to comment.