Not sure if this is true, but I remember reading somewhere that where you are looking for precision you should use Decimal instead of Double. Ever since then we have stopped using Doubles in any of our scripts.
PB 12.5.2 Build 5550 Decimal = 207224875541556032
PB 12.5.2 Build 5550 Double = 2.07224875541556E+17
PB 11.5.1 Build 4897 Decimal = 207224875541556032
PB 11.5.1 Build 4897 Double = 2.07224875541556E+17