Apparently, javascript now has an arbitrary precision decimal type?
Try in browser console the differences between these (the ones with n are "bigint" literals, according to typeof):
10000000000000000+1
10000000000000000n+1n
So if Rhino doesn't support that yet, that's probably a reasonable...