Skip to content

Commit

Permalink
Fixed wrong constant
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Foellmi <[email protected]>
  • Loading branch information
onekiloparsec committed Nov 1, 2023
1 parent cb0c4ba commit 85516e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decimal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Decimal from 'decimal.js'
import { DEG2H, DEG2RAD, H2RAD, RAD2DEG, RAD2H } from '@/constants'
import { DEG2H, DEG2RAD, H2DEG, H2RAD, RAD2DEG, RAD2H } from '@/constants'
import { Degree, Hour, Radian } from '@/types'

declare module 'decimal.js' {
Expand Down Expand Up @@ -31,7 +31,7 @@ Decimal.prototype.hoursToRadians = function (): Radian {
}

Decimal.prototype.hoursToDegrees = function (): Degree {
return this.mul(DEG2H)
return this.mul(H2DEG)
}

Decimal.prototype.radiansToDegrees = function (): Degree {
Expand Down

0 comments on commit 85516e9

Please sign in to comment.