Skip to content

Commit 8613565

Browse files
authored
Merge pull request #1203 from drgrice1/degree-unit-more-accurate
Improve the accuracy of the degree unit.
2 parents be9ea0f + 28ffa1a commit 8613565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Units.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ our %known_units = (
9292

9393
# ANGLES: fundamental unit rad (radian)
9494
deg => { # degree
95-
factor => 0.0174532925,
95+
factor => $PI / 180,
9696
rad => 1,
9797
aliases => [ "\x{00B0}", 'degree', 'degrees' ]
9898
},

0 commit comments

Comments
 (0)