Use Float.roundToInt() instead of java.lang.Math.round
ProprietaryMath.round(f: Float): Int becomes f.roundToInt() as a multiplatform Kotlin extension.
org. openrewrite. kotlin. migrate. UseFloatRoundToInt$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseFloatRoundToInt$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.