Kotlin: -0.0 is considered less than 0.0
The article discusses a discrepancy between what the Kotlin documentation says about comparing floating-point numbers, specifically that -0.0 is considered less than 0.0, and what is observed when comparing them in the Kotlin Playground. The results are different than what the documentation suggests.
How to select always unique next image from predefined array of images on each new post with post id incremented by 1
The article suggests an algorithm to sequentially select the next image relative to the previous one for each new post, using a limited array of images.