Widget : Wrong value for gps accuracy

On picture like this one, the GPSDop value is 1 (the exif value type is a rational).

Reading the code, the value should be "excellent"

if(gpsDop !== undefined) {
			if(gpsDop < 1) { gpsDopLabel = "ideal"; }
			else if(gpsDop < 2) { gpsDopLabel = "excellent"; }
			else if(gpsDop < 5) { gpsDopLabel = "good"; }
			else if(gpsDop < 10) { gpsDopLabel = "moderate"; }
			else if(gpsDop < 20) { gpsDopLabel = "fair"; }
			else { gpsDopLabel = "poor"; }

But the widget displays "poor":

image

is the exif GPSDOP value corectly converted to an integer before the comparison is made?