This part of the calculation was unchanged. I cross-checked with the referenced specification. Here 'round down' aka truncation is the right approach, so the code is correct given the longitude is in the intervall [-180;180].
So I will add a comment making this explicit.