Skip to content

Commit 1232922

Browse files
authored
uses Math.floor to avoid issues with round (#45)
1 parent 1d15d65 commit 1232922

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

project/src/radix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
wrapper.appendChild( symbol );
157157

158158
// draw point descriptions
159-
var textsToShow = [(Math.round(this.data.planets[point.name][0]) % 30).toString()];
159+
var textsToShow = [(Math.floor(this.data.planets[point.name][0]) % 30).toString()];
160160

161161
var zodiac = new astrology.Zodiac(this.data.cusps);
162162

project/src/transit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
wrapper.appendChild( symbol );
118118

119119
// draw point descriptions
120-
var textsToShow = [(Math.round(planets[point.name][0]) % 30).toString()];
120+
var textsToShow = [(Math.floor(planets[point.name][0]) % 30).toString()];
121121

122122
var zodiac = new astrology.Zodiac(this.data.cusps);
123123
if(planets[point.name][1] && zodiac.isRetrograde(planets[point.name][1])){

0 commit comments

Comments
 (0)