@night_of_knee to Programmer [email protected] • 1 year agoCan we finally put this one to rest?imagemessage-square12arrow-up1223arrow-down112file-text
arrow-up1211arrow-down1imageCan we finally put this one to rest?@night_of_knee to Programmer [email protected] • 1 year agomessage-square12file-text
minus-squareThe Quuuuuilllinkfedilink19•1 year agoif (a < b) { return true; } else if (b < a) { return false; } else { return "A == B, bro" }
minus-square@[email protected]linkfedilink2•1 year agoThat is literally how we implemented an algorithm to check for equivalence in a privacy preserving way. Only that you can’t check the results of the evaluation so you have to do 1-(a<b)-(b<a)
if (a < b) { return true; } else if (b < a) { return false; } else { return "A == B, bro" }
That doesn’t work if either one is NaN
That is literally how we implemented an algorithm to check for equivalence in a privacy preserving way. Only that you can’t check the results of the evaluation so you have to do 1-(a<b)-(b<a)
typed languages seeing this