Changes for double comparison in C#, Python and VB