Does there exist, or can you create, a fast method A() which converts a double to a long such that:
A(0d) = 0L A(Math.nextUp(0d)) = 1L A(Math.nextUp(Math.nextUp(0