redundancy: return -1 instead of math.NaN
NaN cannot be marshalled, resulting in encoding errors.
Thanks to Slack user "snakes" for reporting this bug!
NaN cannot be marshalled, resulting in encoding errors.
Thanks to Slack user "snakes" for reporting this bug!